Ticket #5626: 5626.patch

File 5626.patch, 1.1 KB (added by Garry Yao, 14 years ago)
  • _source/core/dtd.js

     
    7575                $block : block,
    7676
    7777                /**
     78                 * List of elements may contain other #{CKEDITOR.dtd.$block} elements:
     79                 */
     80                $blockParents : { body:1,noscript:1,dd:1,dt:1,iframe:1,li:1,td:1,tfoot:1,th:1,thead:1 },
     81
     82                /**
    7883                 * List of block limit elements.
    7984                 * @type Object
    8085                 * @example
  • _source/core/htmlparser/fragment.js

     
    237237                                {
    238238                                        addElement( currentNode, currentNode.parent );
    239239                                }
     240                                // Show tolerance when current is already block parent elements,
     241                                // e.g. body,td,li... Don't break them.
     242                                 else if ( currentName in CKEDITOR.dtd.$blockParents )
     243                                         addPoint = currentNode;
    240244                                else
    241245                                {
    242246                                        if ( nonBreakingBlocks[ currentName ] )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy