TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.

Home Page:https://www.blocknotejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image block editable bug

hncheung9 opened this issue · comments

Describe the bug
BlockNoteView is configured as editable={false}. The image block with no embedded link, which is presented as an Add Image button, is still accessible and allowing user to input a link.

To Reproduce

  1. Add a image block when BlockNoteView is editable={true}
  2. Set editable={false}
  3. Refresh and click on image block, which is in Add Image button state.
  4. Able to embed link, which is not an allowed and expected behavior.

Misc

  • Node version: v20.12.2
  • BlockNote version: 0.12.4
  • Package manager: pnpm
  • Browser: chrome 123.0.6312.107