Преглед изворни кода

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 ] ) {
 	_stripDisallowedAttributes( node, path = [ this.position.parent ] ) {
 		for ( const attribute of node.getAttributeKeys() ) {
 		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 );
 				node.removeAttribute( attribute );
 			}
 			}
 		}
 		}