From 2a85d52eeb3b9da0f2a3a11e4053f4ce9558840a Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 25 Jul 2018 13:14:36 +0800 Subject: [PATCH] * fix bug #1433 --- module/common/view/kindeditor.html.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/common/view/kindeditor.html.php b/module/common/view/kindeditor.html.php index 10358ab0ed..382b70479a 100755 --- a/module/common/view/kindeditor.html.php +++ b/module/common/view/kindeditor.html.php @@ -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,