Ticket #6116: 6116.patch
File 6116.patch, 1.3 KB (added by , 13 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
132 132 if ( attribs.cke_temp ) 133 133 return false; 134 134 135 // Remove duplicated attributes - #3789. 136 var attributeNames = [ 'name', 'href', 'src' ], 135 // Remove duplicated attributes (#3789). 136 // Also protect the contentEditable attribute so it won't get lost by our modifications (#6116). 137 var attributeNames = [ 'name', 'href', 'src', 'contenteditable' ], 137 138 savedAttributeName; 138 139 for ( var i = 0 ; i < attributeNames.length ; i++ ) 139 140 { … … 263 264 defaultHtmlFilterRules.elements[ i ] = unprotectReadyOnly; 264 265 } 265 266 266 var protectAttributeRegex = /<(?:a|area|img|input )[\s\S]*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi;267 var protectAttributeRegex = /<(?:a|area|img|input|textarea)[\s\S]*?\s((?:href|src|name|contenteditable)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi; 267 268 268 269 var protectElementsRegex = /(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi, 269 270 encodedElementsRegex = /<cke:encoded>([^<]*)<\/cke:encoded>/gi;