Skip to content

: is not supported on multi-character trigger for suggestion menus #2905

Description

@ClementEXWiki

What’s broken?

When defining a SuggestionMenuController with a multi-character trigger, colons prevent the menu from ever being triggered.

What did you expect to happen?

The menu should open fine with a colon.

Steps to reproduce

<SuggestionMenuController
      triggerCharacter={"img:"}
      getItems={...}
      suggestionMenuComponent={...}
    />

Note that both img# and : alone work too.

BlockNote version

v0.51.4

Environment

Firefox 152.0.4, Fedora 44

Additional context

No response

Contribution

  • I'd be interested in contributing a fix for this issue

Sponsor

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions