8
0
Oskar Wróbel 8 лет назад
Родитель
Сommit
9c81bca681
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/ckeditor5-engine/src/controller/insertcontent.js

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

@@ -229,7 +229,7 @@ class Insertion {
 		// When disallowed node is a text but text is allowed in current parent it means that our node
 		// When disallowed node is a text but text is allowed in current parent it means that our node
 		// contains disallowed attributes and we have to remove them.
 		// contains disallowed attributes and we have to remove them.
 		else if ( node.is( 'text' ) && this.schema.check( { name: '$text', inside: [ this.position.parent ] } ) ) {
 		else if ( node.is( 'text' ) && this.schema.check( { name: '$text', inside: [ this.position.parent ] } ) ) {
-			this._stripsDisallowedAttributes( node );
+			this._stripDisallowedAttributes( node );
 			this._handleNode( node, context );
 			this._handleNode( node, context );
 		}
 		}
 		// Try autoparagraphing.
 		// Try autoparagraphing.
@@ -335,7 +335,7 @@ class Insertion {
 			// When node is a text and is disallowed by schema it means that contains disallowed attributes
 			// When node is a text and is disallowed by schema it means that contains disallowed attributes
 			// and we need to remove them.
 			// and we need to remove them.
 			if ( node.is( 'text' ) && !this._checkIsAllowed( node, [ paragraph ] ) ) {
 			if ( node.is( 'text' ) && !this._checkIsAllowed( node, [ paragraph ] ) ) {
-				this._stripsDisallowedAttributes( node, [ paragraph ] );
+				this._stripDisallowedAttributes( node, [ paragraph ] );
 			}
 			}
 
 
 			if ( this._checkIsAllowed( node, [ paragraph ] ) ) {
 			if ( this._checkIsAllowed( node, [ paragraph ] ) ) {
@@ -437,7 +437,7 @@ class Insertion {
 	 * @param {module:engine/model/node~Node} node
 	 * @param {module:engine/model/node~Node} node
 	 * @param {module:engine/model/schema~SchemaPath} path
 	 * @param {module:engine/model/schema~SchemaPath} path
 	 */
 	 */
-	_stripsDisallowedAttributes( 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 );