Piotrek Koszuliński пре 9 година
родитељ
комит
8ccfdb9966
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/ckeditor5-link/src/unlinkcommand.js

+ 1 - 1
packages/ckeditor5-link/src/unlinkcommand.js

@@ -21,7 +21,7 @@ export default class UnlinkCommand extends Command {
 		super( editor );
 
 		// Checks when command should be enabled or disabled.
-		this.listenTo( this.editor.document.selection, 'change:attribute', () => this.refreshState() );
+		this.listenTo( editor.document.selection, 'change:attribute', () => this.refreshState() );
 	}
 
 	/**