Ticket #6639: 6639_3.patch

File 6639_3.patch, 1.0 KB (added by Garry Yao, 13 years ago)
  • _source/core/htmlparser/element.js

     
    3636
    3737        var tagName = attributes[ 'data-cke-real-element-type' ] || name;
    3838
     39        // Reveal the real semantic of our internal custom tag name (#6639).
     40        var internalTag = tagName.match( /^cke:(.*)/ );
     41        internalTag && ( tagName = internalTag[ 1 ] );
     42
    3943        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 ];
    4251
    4352        this.isEmpty    = isEmpty;
    4453        this.isUnknown  = !dtd[ name ];
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy