Skip to content

Commit

Permalink
Renamed openSelectionMenu to openSuggestionMenu (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlipski authored Sep 4, 2024
1 parent 6440f5f commit 1b0828b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/editor/BlockNoteEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ export class BlockNoteEditor<
};
}

public openSelectionMenu(triggerCharacter: string) {
public openSuggestionMenu(triggerCharacter: string) {
this.prosemirrorView.focus();
this.prosemirrorView.dispatch(
this.prosemirrorView.state.tr
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/extensions/SideMenu/SideMenuPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ export class SideMenuView<
}

// Focuses and activates the slash menu.
this.editor.openSelectionMenu("/");
this.editor.openSuggestionMenu("/");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export function getDefaultSlashMenuItems<
}

items.push({
onItemClick: () => editor.openSelectionMenu(":"),
onItemClick: () => editor.openSuggestionMenu(":"),
key: "emoji",
...editor.dictionary.slash_menu.emoji,
});
Expand Down

0 comments on commit 1b0828b

Please sign in to comment.