浏览代码

修改脚本编辑器输入的bug

huqi 6 年之前
父节点
当前提交
16db2b9fff

+ 1 - 1
o2web/source/o2_core/o2/widget/ScriptArea.js

@@ -169,7 +169,7 @@ o2.widget.ScriptArea = new Class({
                 "set": function(v){
                     content.editors.each(function(editor){
                         if (editor.editor){
-                            if (v!==editor.editor.getValue()) editor.editor.setValue(v);
+                            if (v!==editor.editor.getValue()) editor.editor.setValue(v,1);
                         }else{
                             editor.reload();
                         }

文件差异内容过多而无法显示
+ 0 - 0
o2web/source/o2_lib/ace/src-min-noconflict/ace.js


+ 1 - 1
o2web/source/x_component_portal_PageDesigner/Script.js

@@ -920,7 +920,7 @@ MWF.xApplication.portal.PageDesigner.Script.Item = new Class({
                 "set": function(v){
                     this.data.editors.each(function(editor){
                         if (editor.editor){
-                            if (v!==editor.editor.getValue()) editor.editor.setValue(v);
+                            if (v!==editor.editor.getValue()) editor.editor.setValue(v,1);
                         }else{
                             editor.reload();
                         }

部分文件因为文件数量过多而无法显示