Skip to content

Comments

fix: disable slash menu in table content #2408#2504

Draft
nperez0111 wants to merge 2 commits intomainfrom
fix/2408
Draft

fix: disable slash menu in table content #2408#2504
nperez0111 wants to merge 2 commits intomainfrom
fix/2408

Conversation

@nperez0111
Copy link
Contributor

@nperez0111 nperez0111 commented Feb 20, 2026

Summary

This disables the slash menu from triggering within table content

Rationale

Table content cannot have block-level elements inserted within it, so they should be excluded from being considered.

Changes

Impact

I'm unsure how we can filter out only the slash menu from being invoked within table content. It feels to me like we need a callback API too which would filter out the sort of context that we'd be satisfied with triggering the suggestion menu within.

Testing

Screenshots/Video

Checklist

  • Code follows the project's coding standards.
  • Unit tests covering the new feature have been added.
  • All existing tests pass.
  • The documentation has been updated to reflect the new feature

Additional Notes

@vercel
Copy link

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blocknote Ready Ready Preview Feb 20, 2026 3:44pm
blocknote-website Ready Ready Preview Feb 20, 2026 3:44pm

Request Review

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 20, 2026

Open in StackBlitz

@blocknote/ariakit

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/ariakit@2504

@blocknote/code-block

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/code-block@2504

@blocknote/core

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/core@2504

@blocknote/mantine

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/mantine@2504

@blocknote/react

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/react@2504

@blocknote/server-util

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/server-util@2504

@blocknote/shadcn

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/shadcn@2504

@blocknote/xl-ai

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-ai@2504

@blocknote/xl-docx-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-docx-exporter@2504

@blocknote/xl-email-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-email-exporter@2504

@blocknote/xl-multi-column

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-multi-column@2504

@blocknote/xl-odt-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-odt-exporter@2504

@blocknote/xl-pdf-exporter

npm i https://pkg.pr.new/TypeCellOS/BlockNote/@blocknote/xl-pdf-exporter@2504

commit: d45628a

@YousefED
Copy link
Collaborator

I'm unsure how we can filter out only the slash menu from being invoked within table content. It feels to me like we need a callback API too which would filter out the sort of context that we'd be satisfied with triggering the suggestion menu within.

Good catch. I think this our options are:

  • refactor triggerCharacter to something like menuOptions: {triggerCharacter: string, filterTransaction: (tr) => boolean}
  • or, zoom out and see if we'd want to refactor this component further (i.e.: make it more inline with the plugin / UI Element refactor from last year)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants