Ticket #7432: 7432.patch

File 7432.patch, 784 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/list/plugin.js

     
    478478                                {
    479479                                        var paragraph = doc.createElement( editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' :
    480480                                                        ( editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'br' ) );
     481
     482                                        // WebKit requires anything to be inside the pargraph for the following to take place (#7432)
     483                                        CKEDITOR.env.webkit && paragraph.append( new CKEDITOR.dom.text( '' ) );
     484
    481485                                        paragraph.appendTo( body );
    482486                                        ranges = new CKEDITOR.dom.rangeList( [ new CKEDITOR.dom.range( doc ) ] );
    483487                                        // IE exception on inserting anything when anchor inside <br>.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy