Changes between Version 5 and Version 6 of Ticket #12087, comment 4
- Timestamp:
- Jul 2, 2015, 3:48:28 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12087, comment 4
v5 v6 25 25 26 26 // Is the child empty? Then remove it. 27 if (!startNode.getText().trim()) { 27 // Note: CKEditor sometimes decides to use 28 // http://www.fileformat.info/info/unicode/char/200b/index.htm 29 // for extra inconsistency/complexity. 30 var trimmedText = startNode.getText().trim(); 31 if (!trimmedText || 32 (trimmedText.length === 1 && trimmedText.charCodeAt(0) === 8203)) { 28 33 startNode.remove(); 29 34 this.updateModel();