8
0
Quellcode durchsuchen

Removed not necessary array typecasting.

Oskar Wróbel vor 8 Jahren
Ursprung
Commit
3e1dc34ee9
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      packages/ckeditor5-engine/src/controller/insertcontent.js

+ 1 - 1
packages/ckeditor5-engine/src/controller/insertcontent.js

@@ -439,7 +439,7 @@ class Insertion {
 	 */
 	_stripDisallowedAttributes( node, path = [ this.position.parent ] ) {
 		for ( const attribute of node.getAttributeKeys() ) {
-			if ( !this.schema.check( { name: '$text', attributes: attribute, inside: [ path ] } ) ) {
+			if ( !this.schema.check( { name: '$text', attributes: attribute, inside: path } ) ) {
 				node.removeAttribute( attribute );
 			}
 		}