소스 검색

binding TextWatcher isEnabled with MentionCommand

Kuba Niegowski 5 년 전
부모
커밋
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();
 		} );
 
+		const command = editor.commands.get( 'mention' );
+		watcher.bind( 'isEnabled' ).to( command );
+
 		return watcher;
 	}