Преглед на файлове

Removed not necessary array typecasting.

Oskar Wróbel преди 8 години
родител
ревизия
3e1dc34ee9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 );
 			}
 		}