Explorar el Código

Changed enqueueChange to change.

Oskar Wróbel hace 8 años
padre
commit
01e8a11de5
Se han modificado 1 ficheros con 1 adiciones y 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 );