Ticket #3473: 3473_5.patch

File 3473_5.patch, 1.5 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/enterkey/plugin.js

     
    260259
    261260                        // A text node is required by Gecko only to make the cursor blink.
    262261                        if ( CKEDITOR.env.gecko )
    263                                 doc.createText( '' ).insertAfter( lineBreak );
     262                                doc.createText( '\ufeff' ).insertAfter( lineBreak );
    264263
    265264                        // If we are at the end of a block, we must be sure the bogus node is available in that block.
    266265                        if ( isEndOfBlock && !CKEDITOR.env.ie )
  • _source/core/dom/element.js

     
    241241                        // Ignore empty/spaces text.
    242242                        while ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tools.rtrim( lastChild.getText() ) )
    243243                                lastChild = lastChild.getPrevious();
    244 
    245                         if ( !lastChild || ( lastChild.is && ( !lastChild.is( 'br' ) || !lastChild.getAttribute( '_cke_bogus' ) ) ) )
     244                        if ( !lastChild || !lastChild.is || !lastChild.is( 'br' ) )
    246245                        {
    247246                                this.append(
    248247                                        CKEDITOR.env.opera ?
     
    247246                                this.append(
    248247                                        CKEDITOR.env.opera ?
    249248                                                this.getDocument().createText('') :
    250                                                 this.getDocument().createElement( 'br', { attributes : { _cke_bogus : 1 } } ) );
     249                                                this.getDocument().createElement( 'br' ) );
    251250                        }
    252251                },
    253252
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy