Ticket #6639: 6639_3.patch
File 6639_3.patch, 1.0 KB (added by , 13 years ago) |
---|
-
_source/core/htmlparser/element.js
36 36 37 37 var tagName = attributes[ 'data-cke-real-element-type' ] || name; 38 38 39 // Reveal the real semantic of our internal custom tag name (#6639). 40 var internalTag = tagName.match( /^cke:(.*)/ ); 41 internalTag && ( tagName = internalTag[ 1 ] ); 42 39 43 var dtd = CKEDITOR.dtd, 40 isBlockLike = !!( dtd.$nonBodyContent[ tagName ] || dtd.$block[ tagName ] || dtd.$listItem[ tagName ] || dtd.$tableContent[ tagName ] || dtd.$nonEditable[ tagName ] || tagName == 'br' ), 41 isEmpty = !!dtd.$empty[ name ]; 44 isBlockLike = !!( dtd.$nonBodyContent[ tagName ] 45 || dtd.$block[ tagName ] 46 || dtd.$listItem[ tagName ] 47 || dtd.$tableContent[ tagName ] 48 || dtd.$nonEditable[ tagName ] 49 || tagName == 'br' ), 50 isEmpty = !!dtd.$empty[ name ]; 42 51 43 52 this.isEmpty = isEmpty; 44 53 this.isUnknown = !dtd[ name ];