Просмотр исходного кода

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

unknown 5 лет назад
Родитель
Сommit
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 )