Ticket #3473: 3473_4.patch

File 3473_4.patch, 823 bytes (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/core/dom/element.js

     
    242242                        while ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tools.rtrim( lastChild.getText() ) )
    243243                                lastChild = lastChild.getPrevious();
    244244
    245                         if ( !lastChild || ( lastChild.is && ( !lastChild.is( 'br' ) || !lastChild.getAttribute( '_cke_bogus' ) ) ) )
     245                        if ( !lastChild || ( lastChild.is && !lastChild.is( 'br' ) ) )
    246246                        {
    247247                                this.append(
    248248                                        CKEDITOR.env.opera ?
    249249                                                this.getDocument().createText('') :
    250                                                 this.getDocument().createElement( 'br', { attributes : { _cke_bogus : 1 } } ) );
     250                                                this.getDocument().createElement( 'br' ) );
    251251                        }
    252252                },
    253253
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy