]> git.immae.eu Git - perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git/blobdiff - sources/core/dom/walker.js
Upgrade to 4.5.7 and add some plugin
[perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git] / sources / core / dom / walker.js
index 5f2c8f4083fb153f9a9f6cc0132dc7c0c5e78892..746b40678d21dd3e8bab33fda0b21edc8298407a 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
+ * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  * For licensing, see LICENSE.md or http://ckeditor.com/license
  */
 
                return function( node ) {
                        var isWhitespace;
                        if ( node && node.type == CKEDITOR.NODE_TEXT ) {
-                               // whitespace, as well as the text cursor filler node we used in Webkit. (#9384)
+                               // Whitespace, as well as the Filling Char Sequence text node used in Webkit. (#9384, #13816)
                                isWhitespace = !CKEDITOR.tools.trim( node.getText() ) ||
-                                       CKEDITOR.env.webkit && node.getText() == '\u200b';
+                                       CKEDITOR.env.webkit && node.getText() == CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE;
                        }
 
                        return !!( isReject ^ isWhitespace );