Ticket #3919: 3919.patch

File 3919.patch, 725 bytes (added by Martin Kou, 15 years ago)
  • _source/plugins/domiterator/plugin.js

     
    6262                                var lastNode = walker.previous();
    6363                                this._.lastNode = lastNode.getNextSourceNode( true );
    6464
    65                                 if ( this._.lastNode.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tool.trim( this._.lastNode.getText( ) ) )
     65                                if ( this._.lastNode &&
     66                                                this._.lastNode.type == CKEDITOR.NODE_TEXT &&
     67                                                !CKEDITOR.tool.trim( this._.lastNode.getText( ) ) )
    6668                                {
    6769                                        // Special case for #3887:
    6870                                        // We may have an empty text node at the end of block due to [3770].
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy