Changes between Version 6 and Version 7 of Ticket #12087, comment 4
- Timestamp:
- Jul 3, 2015, 11:22:12 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12087, comment 4
v6 v7 8 8 9 9 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 } 10 16 11 17 // In the case of <p> </p> we need to go one further up … … 32 38 (trimmedText.length === 1 && trimmedText.charCodeAt(0) === 8203)) { 33 39 startNode.remove(); 34 this.updateModel();35 40 36 41 // `preventdefault` stops CKEditor removing the ENTIRE