Skip to content

Make it easy to add slash menu items #102

Closed

Description

@yassinebridi

Right now slash menu items are hardcoded, it would be really cool for it to be configurable.

I believe it's already doable if the SlashMenuExtension is exported from @blocknote/core.

and just add it to the extensions like this:

extensions: [
  SlashMenuExtension.configure({
    slashMenuFactory: ReactSlashMenuFactory,
  }),
],

But again you would have more control over the keyboard shortcut and icons, etc..

Activity

  1. YousefED commented on Mar 14, 2023

    @YousefED
    Collaborator

    Hi @yassinebridi !

    This is now possible. See https://www.blocknotejs.org/docs/slash-menu.

    Also, we just released the website with docs. Feedback welcome!

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

Metadata

Metadata

Assignees

No one assigned

    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