Browse Source

ChangeOperation._execute fixed condition.

Szymon Cofalik 10 years ago
parent
commit
6c087b863a

+ 1 - 1
packages/ckeditor5-utils/src/document/operation/changeoperation.js

@@ -80,7 +80,7 @@ CKEDITOR.define( [
 			}
 
 			// Remove or change.
-			if ( oldAttr !== null && newAttr === null ) {
+			if ( oldAttr !== null ) {
 				for ( value of this.range ) {
 					if ( !value.node.hasAttr( oldAttr ) ) {
 						/**