chore: Cleanup editor menu handlers (#5174

* wip

* wip

* refactor
This commit is contained in:
Tom Moor
2023-04-10 18:50:21 -04:00
committed by GitHub
parent 70f3a998a4
commit 60dbad765a
15 changed files with 502 additions and 572 deletions

View File

@@ -117,7 +117,7 @@ export default class Link extends Mark {
return {
"Mod-k": (state: EditorState, dispatch: Dispatch) => {
if (state.selection.empty) {
this.editor.events.emit(EventType.linkMenuOpen);
this.editor.events.emit(EventType.LinkToolbarOpen);
return true;
}