Changes between Version 6 and Version 7 of Ticket #12087, comment 4


Ignore:
Timestamp:
Jul 3, 2015, 11:22:12 AM (9 years ago)
Author:
ferahl
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12087, comment 4

    v6 v7  
    88
    99                var startNode = range.startContainer;
     10
     11                // Another fix: prevent CKEditor from deleting all content.
     12                if (startNode.$ === this.$el[0]) {
     13                        e.preventDefault();
     14                        return;
     15                }
    1016
    1117                // In the case of <p>&nbsp;</p> we need to go one further up
     
    3238                        (trimmedText.length === 1 && trimmedText.charCodeAt(0) === 8203)) {
    3339                        startNode.remove();
    34                         this.updateModel();
    3540
    3641                        // `preventdefault` stops CKEditor removing the ENTIRE
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy