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


Ignore:
Timestamp:
Jul 2, 2015, 3:48:28 PM (9 years ago)
Author:
ferahl
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12087, comment 4

    v5 v6  
    2525
    2626                // 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)) {
    2833                        startNode.remove();
    2934                        this.updateModel();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy