Преглед изворни кода

修复ck编辑器移动端图片不显示的问题

unknown пре 4 година
родитељ
комит
e4e164641d

+ 2 - 1
o2web/source/x_component_cms_Xform/Htmleditor.js

@@ -78,7 +78,8 @@ MWF.xApplication.cms.Xform.Htmleditor = MWF.CMSHtmleditor =  new Class({
                 if (!editorConfig.toolbar && !editorConfig.toolbarGroups){
                     editorConfig.toolbar = [
                         { name: 'paragraph',   items: [ 'Bold', 'Italic', "-" , 'TextColor', "BGColor", 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', "-", 'Undo', 'Redo' ] },
-                        { name: 'basicstyles', items: [ 'Styles', 'FontSize']}
+                        { name: 'basicstyles', items: [ 'Styles', 'FontSize']},
+                        { name: 'insert', items : [ 'Image' ] }
                     ];
                 }
             }

+ 2 - 1
o2web/source/x_component_process_Xform/Htmleditor.js

@@ -78,7 +78,8 @@ MWF.xApplication.process.Xform.Htmleditor = MWF.APPHtmleditor =  new Class(
                 if (!editorConfig.toolbar && !editorConfig.toolbarGroups){
                     editorConfig.toolbar = [
                         { name: 'paragraph',   items: [ 'Bold', 'Italic', "-" , 'TextColor', "BGColor", 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', "-", 'Undo', 'Redo' ] },
-                        { name: 'basicstyles', items: [ 'Styles', 'FontSize']}
+                        { name: 'basicstyles', items: [ 'Styles', 'FontSize']},
+                        { name: 'insert', items : [ 'Image' ] }
                     ];
                 }
             }