瀏覽代碼

Changed incorrect emitter.

Oskar Wróbel 8 年之前
父節點
當前提交
d8e5602b2a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-core/src/command.js

+ 1 - 1
packages/ckeditor5-core/src/command.js

@@ -66,7 +66,7 @@ export default class Command {
 		this.decorate( 'execute' );
 
 		// By default every command is refreshed when changes are applied to the model.
-		this.listenTo( this.editor.document, 'changesDone', () => {
+		this.listenTo( this.editor.model.document, 'changesDone', () => {
 			this.refresh();
 		} );