Ticket #6639: 6639_2.patch
File 6639_2.patch, 1.4 KB (added by , 13 years ago) |
---|
-
_source/core/htmlparser/element.js
37 37 var tagName = attributes[ 'data-cke-real-element-type' ] || name; 38 38 39 39 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 ]; 40 isBlockLike = !!( dtd.$nonBodyContent[ tagName ] 41 || dtd.$block[ tagName ] 42 || dtd.$listItem[ tagName ] 43 || dtd.$tableContent[ tagName ] 44 || dtd.$nonEditable[ tagName ] 45 || tagName == 'br' 46 || !dtd[ tagName ] 47 || dtd.$customBlock[ tagName ] ), 48 isEmpty = !!dtd.$empty[ name ]; 42 49 43 50 this.isEmpty = isEmpty; 44 51 this.isUnknown = !dtd[ name ]; -
_source/core/dtd.js
81 81 $blockLimit : { body:1,div:1,td:1,th:1,caption:1,form:1 }, 82 82 83 83 /** 84 * Custom element that are considered as block. 85 */ 86 $customBlock : { 'cke:li':1 }, 87 88 /** 84 89 * List of inline (<span> like) elements. 85 90 */ 86 91 $inline : L, // Just like span.