Explorar o código

Changed enqueueChange to change.

Oskar Wróbel %!s(int64=8) %!d(string=hai) anos
pai
achega
01e8a11de5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/ckeditor5-basic-styles/src/attributecommand.js

+ 1 - 1
packages/ckeditor5-basic-styles/src/attributecommand.js

@@ -88,7 +88,7 @@ export default class AttributeCommand extends Command {
 		const selection = doc.selection;
 		const value = ( options.forceValue === undefined ) ? !this.value : options.forceValue;
 
-		model.enqueueChange( writer => {
+		model.change( writer => {
 			if ( selection.isCollapsed ) {
 				if ( value ) {
 					selection.setAttribute( this.attributeKey, true );