Ticket #6054: 6054.patch

File 6054.patch, 598 bytes (added by Frederico Caldeira Knabben, 9 years ago)
  • _source/plugins/selection/plugin.js

     
    10401040                        if ( this.isLocked )
    10411041                        {
    10421042                                this._.cache.selectedElement = null;
    1043                                 this._.cache.startElement = ranges[ 0 ].getTouchedStartNode();
     1043                                this._.cache.startElement = ranges[ 0 ] && ranges[ 0 ].getTouchedStartNode();
    10441044                                this._.cache.ranges = new CKEDITOR.dom.rangeList( ranges );
    10451045                                this._.cache.type = CKEDITOR.SELECTION_TEXT;
    10461046
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy