Skip to content

/ menu not working after a colon #1473

Description

@rouja

If a sentence ends with ':', the '/' menu stops working.

Image

Activity

  1. YousefED commented on Mar 3, 2025

    @YousefED
    Collaborator

    Thanks, was able to reproduce this

  2. brennancheung commented on Mar 20, 2025

    @brennancheung

    Seems like an issue with SuggestionMenuController not just the slash menu itself.

    You can reproduce it on the docs website directly https://www.blocknotejs.org/docs/ui-components/suggestion-menus

    Scroll down to the mentions example and type something like breaks after colon: @. Funny thing is that if you move the cursor before the : it still works fine.

  3. nperez0111 commented on Apr 7, 2025

    @nperez0111
    Contributor

    This is because : is the trigger character for the emoji menu, and / is the trigger character for the slash menu.
    So it sees :/ as not being an emoji, when it maybe should switch the menu type.

    Would likely require updating this function:

    apply(transaction, prev, _oldState, newState): SuggestionPluginState {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions