Authored by 张帅

优化富文本

@@ -194,7 +194,7 @@ @@ -194,7 +194,7 @@
194 initialFrameHeight: 200, 194 initialFrameHeight: 200,
195 initialFrameWidth : "90%", 195 initialFrameWidth : "90%",
196 initialFrameHeight : 350, 196 initialFrameHeight : 350,
197 - retainOnlyLabelPasted:true, 197 + removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var,h1,h2,h3,h4,h5',
198 toolbars: [[ 198 toolbars: [[
199 'source', '|', 'undo', 'redo', '|','formatmatch','removeformat', 199 'source', '|', 'undo', 'redo', '|','formatmatch','removeformat',
200 'bold', 'italic', 'underline','strikethrough','horizontal','|','paragraph', 'rowspacingtop', 200 'bold', 'italic', 'underline','strikethrough','horizontal','|','paragraph', 'rowspacingtop',
@@ -204,8 +204,11 @@ @@ -204,8 +204,11 @@
204 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'help','fullscreen' 204 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'help','fullscreen'
205 ]], 205 ]],
206 elementPathEnabled : false, 206 elementPathEnabled : false,
  207 + catchRemoteImageEnable:false,
  208 + enableAutoSave:false,
  209 + enableContextMenu: false,
  210 + retainOnlyLabelPasted:true,
207 maximumWords:100000, 211 maximumWords:100000,
208 - autoFloatEnabled:false  
209 }); 212 });
210 UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl; 213 UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
211 UE.Editor.prototype.getActionUrl = function(action) { 214 UE.Editor.prototype.getActionUrl = function(action) {
@@ -219,7 +219,7 @@ @@ -219,7 +219,7 @@
219 initialFrameHeight: 200, 219 initialFrameHeight: 200,
220 initialFrameWidth : "90%", 220 initialFrameWidth : "90%",
221 initialFrameHeight : 350, 221 initialFrameHeight : 350,
222 - retainOnlyLabelPasted:true, 222 + removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var,h1,h2,h3,h4,h5',
223 toolbars: [[ 223 toolbars: [[
224 'source', '|', 'undo', 'redo', '|','formatmatch','removeformat', 224 'source', '|', 'undo', 'redo', '|','formatmatch','removeformat',
225 'bold', 'italic', 'underline','strikethrough','horizontal','|','paragraph', 'rowspacingtop', 225 'bold', 'italic', 'underline','strikethrough','horizontal','|','paragraph', 'rowspacingtop',
@@ -229,6 +229,10 @@ @@ -229,6 +229,10 @@
229 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'help','fullscreen' 229 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'help','fullscreen'
230 ]], 230 ]],
231 elementPathEnabled : false, 231 elementPathEnabled : false,
  232 + catchRemoteImageEnable:false,
  233 + enableAutoSave:false,
  234 + enableContextMenu: false,
  235 + retainOnlyLabelPasted:true,
232 maximumWords:100000, 236 maximumWords:100000,
233 }); 237 });
234 UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl; 238 UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;