Changeset 7545
- Timestamp:
- 07/06/12 09:14:51 (11 months ago)
- File:
-
- 1 edited
-
CKEditor/trunk/_source/core/htmlparser/element.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/core/htmlparser/element.js
r7542 r7545 26 26 * @example 27 27 */ 28 this.attributes = attributes || ( attributes = {} );28 this.attributes = attributes || {}; 29 29 30 30 /** … … 35 35 this.children = []; 36 36 37 var tagName = attributes[ 'data-cke-real-element-type' ] || name || ''; 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 43 var dtd = CKEDITOR.dtd, 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[ tagName ]; 51 52 this.isEmpty = isEmpty; 53 this.isUnknown = !dtd[ tagName ]; 37 // Reveal the real semantic of our internal custom tag name (#6639), 38 // when resolving whether it's block like. 39 var realName = name || '', 40 prefixed = realName.match( /^cke:(.*)/ ); 41 prefixed && ( realName = prefixed[ 1 ] ); 42 43 var isBlockLike = !!( CKEDITOR.dtd.$nonBodyContent[ realName ] 44 || CKEDITOR.dtd.$block[ realName ] 45 || CKEDITOR.dtd.$listItem[ realName ] 46 || CKEDITOR.dtd.$tableContent[ realName ] 47 || CKEDITOR.dtd.$nonEditable[ realName ] 48 || realName == 'br' ); 49 50 this.isEmpty = !!CKEDITOR.dtd.$empty[ name ]; 51 this.isUnknown = !CKEDITOR.dtd[ name ]; 54 52 55 53 /** @private */ … … 57 55 { 58 56 isBlockLike : isBlockLike, 59 hasInlineStarted : isEmpty || !isBlockLike57 hasInlineStarted : this.isEmpty || !isBlockLike 60 58 }; 61 59 };
Note: See TracChangeset
for help on using the changeset viewer.
