8
0
Просмотр исходного кода

binding TextWatcher isEnabled with MentionCommand

Kuba Niegowski 5 лет назад
Родитель
Сommit
e40a5b5dec
1 измененных файлов с 3 добавлено и 0 удалено
  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();
 			this._hideUIAndRemoveMarker();
 		} );
 		} );
 
 
+		const command = editor.commands.get( 'mention' );
+		watcher.bind( 'isEnabled' ).to( command );
+
 		return watcher;
 		return watcher;
 	}
 	}