8
0
Просмотр исходного кода

Changed enqueueChange to change.

Oskar Wróbel 8 лет назад
Родитель
Сommit
01e8a11de5
1 измененных файлов с 1 добавлено и 1 удалено
  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 );