Explorar o código

Changed incorrect emitter.

Oskar Wróbel %!s(int64=8) %!d(string=hai) anos
pai
achega
d8e5602b2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 		} );