8
0
Quellcode durchsuchen

Aligned the last super.is() use to the changes in this PR.

Piotrek Koszuliński vor 5 Jahren
Ursprung
Commit
cc0633b191
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      packages/ckeditor5-engine/src/view/text.js

+ 3 - 1
packages/ckeditor5-engine/src/view/text.js

@@ -60,7 +60,9 @@ export default class Text extends Node {
 	 * @returns {Boolean}
 	 */
 	is( type ) {
-		return type === 'text' || type === 'view:text' || super.is( type );
+		return type === 'text' || type === 'view:text' ||
+			// From super.is(). This is highly utilised method and cannot call super. See ckeditor/ckeditor5#6529.
+			type === 'node' || type === 'view:node';
 	}
 
 	/**