소스 검색

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();
 		} );