Ticket #6639: 6639_2.patch

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

     
    3737        var tagName = attributes[ 'data-cke-real-element-type' ] || name;
    3838
    3939        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 ];
    4249
    4350        this.isEmpty    = isEmpty;
    4451        this.isUnknown  = !dtd[ name ];
  • _source/core/dtd.js

     
    8181                $blockLimit : { body:1,div:1,td:1,th:1,caption:1,form:1 },
    8282
    8383                /**
     84                 * Custom element that are considered as block.
     85                 */
     86                $customBlock : { 'cke:li':1 },
     87
     88                /**
    8489                 * List of inline (<span> like) elements.
    8590                 */
    8691                $inline : L,    // Just like span.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy