瀏覽代碼

对CKEditor的extraAllowedContent参数做了修改,允许onerror属性

unknown 5 年之前
父節點
當前提交
520a6d9d16
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      o2web/source/x_component_Template/MDomItem.js

+ 2 - 1
o2web/source/x_component_Template/MDomItem.js

@@ -2597,7 +2597,8 @@ MDomItem.Rtf = new Class({
                 "enterMode": 1,
                 //"height": "200",
                 //"width": "",
-                "readOnly": false
+                "readOnly": false,
+                "extraAllowedContent " : "img{onerror}"
             };
             if( this.options.RTFConfig ){
                 editorConfig = Object.merge( editorConfig, this.options.RTFConfig )