Ticket #5626: 5626_ref.patch

File 5626_ref.patch, 750 bytes (added by Paweł Horzela, 14 years ago)

Patch

  • _source/core/htmlparser/fragment.js

     
    237237                                {
    238238                                        addElement( currentNode, currentNode.parent );
    239239                                }
     240                                else if ( tagName in CKEDITOR.dtd.$listItem )
     241                                {
     242                                        var list = new CKEDITOR.htmlParser.element( 'ul' );
     243                                        while ( currentNode.children.length > 0)
     244                                        {
     245                                                list.add( currentNode.children[ 0 ] );
     246                                                currentNode.children.splice( 0, 1 );
     247                                        }
     248                                        list.parent = currentNode;
     249                                        addPoint = list;
     250                                        reApply = true;
     251                                }
    240252                                else
    241253                                {
    242254                                        if ( nonBreakingBlocks[ currentName ] )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy