This commit is contained in:
wangyidong
2018-07-25 13:14:36 +08:00
parent 7891bf8591
commit 2a85d52eeb
+11
View File
@@ -72,6 +72,17 @@ $uid = uniqid('');
var editorTool = editorToolsMap[options.tools || editor.tools] || simpleTools;
var placeholder = $editor.attr('placeholder') || options.placeholder || '';
/* Remove fullscreen in modal. */
if(config.onlybody == 'yes')
{
var newEditorTool = new Array();
for(i in editorTool)
{
if(editorTool[i] != 'fullscreen') newEditorTool.push(editorTool[i]);
}
editorTool = newEditorTool;
}
$.extend(options,
{
items: editorTool,