Explorar o código

Removed not necessary array typecasting.

Oskar Wróbel %!s(int64=8) %!d(string=hai) anos
pai
achega
3e1dc34ee9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );
 			}
 		}