Explorar el Código

binding TextWatcher isEnabled with MentionCommand

Kuba Niegowski hace 5 años
padre
commit
e40a5b5dec
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      packages/ckeditor5-mention/src/mentionui.js

+ 3 - 0
packages/ckeditor5-mention/src/mentionui.js

@@ -406,6 +406,9 @@ export default class MentionUI extends Plugin {
 			this._hideUIAndRemoveMarker();
 		} );
 
+		const command = editor.commands.get( 'mention' );
+		watcher.bind( 'isEnabled' ).to( command );
+
 		return watcher;
 	}