Ticket #4964: 4964.patch

File 4964.patch, 689 bytes (added by Frederico Caldeira Knabben, 14 years ago)
  • _source/core/dom/element.js

     
    243243                                lastChild = lastChild.getPrevious();
    244244                        if ( !lastChild || !lastChild.is || !lastChild.is( 'br' ) )
    245245                        {
    246                                 this.append(
    247                                         CKEDITOR.env.opera ?
     246                                var bogus = CKEDITOR.env.opera ?
    248247                                                this.getDocument().createText('') :
    249                                                 this.getDocument().createElement( 'br' ) );
     248                                                this.getDocument().createElement( 'br' );
     249
     250                                CKEDITOR.env.gecko && bogus.setAttribute( 'type', '_moz' );
     251
     252                                this.append( bogus );
    250253                        }
    251254                },
    252255
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy