Ticket #4609: 4609_2.patch
File 4609_2.patch, 2.1 KB (added by , 13 years ago) |
---|
-
_source/core/htmlparser/element.js
35 35 this.children = []; 36 36 37 37 var dtd = CKEDITOR.dtd, 38 isBlockLike = !!( dtd.$block[ name ] || dtd.$listItem[ name ] || dtd.$tableContent[ name ] ),38 isBlockLike = !!( dtd.$block[ name ] || dtd.$listItem[ name ] || dtd.$tableContent[ name ] || dtd.$nonEditable ), 39 39 isEmpty = !!dtd.$empty[ name ]; 40 40 41 41 this.isEmpty = isEmpty; -
_source/core/dtd.js
97 97 * @type Object 98 98 * @example 99 99 */ 100 $nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1 },100 $nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1}, 101 101 102 102 /** 103 103 * List of elements that can be ignored if empty, like "b" or "span". -
_source/plugins/htmldataprocessor/plugin.js
209 209 var protectStyleTagsRegex = /<(style)(?=[ >])[^>]*>[^<]*<\/\1>/gi; 210 210 var encodedTagsRegex = /<cke:encoded>([^<]*)<\/cke:encoded>/gi; 211 211 var protectElementNamesRegex = /(<\/?)((?:object|embed|param).*?>)/gi; 212 var protectSelfClosingRegex = /<cke: param(.*?)\/>/gi;212 var protectSelfClosingRegex = /<cke:(param|embed)(.*?)[/]?>/gi; 213 213 214 214 function protectStyleTagsMatch( match ) 215 215 { … … 226 226 } 227 227 function protectSelfClosingElements( html ) 228 228 { 229 return html.replace( protectSelfClosingRegex, '<cke: param$1></cke:param>' );229 return html.replace( protectSelfClosingRegex, '<cke:$1$2></cke:$1>' ); 230 230 } 231 231 232 232 function unprotectEncodedTagsMatch( match, encoded )