Skip to content

fix: add data attribute for correct react rendering - #1954

Merged
nperez0111 merged 2 commits into
mainfrom
fix/1844
Aug 25, 2025
Merged

nperez0111 merged 2 commits into
mainfrom
fix/1844

Conversation

@nperez0111

@nperez0111 nperez0111 commented Aug 22, 2025 •

Copy link
Copy Markdown
Contributor

This was caused by a change to Tiptap in a more recent version: ueberdosis/tiptap#6600 which specifically looks for an attribute which Tiptap expects on an element to exist to be considered as part of the contentDOM.

BlockNote does not use the NodeViewContent React component (instead using the BlockNote contentRef). So, to address this issue, we now explicitly set the data-attribute which Tiptap's React integration expects on the element.

This element is handed off to ProseMirror anyway so React should not blow it away on render.

While we are at it, updated all @tiptap/* packages to their latest versions. These are likely the last versions before we switch to v3. We may want to consider always pulling the latest tiptap versions to catch these sorts of issues sooner

Fixes #1844
Fixes #1897
Resolves Linear Ticket: https://linear.app/blocknote/issue/BLO-301/react-blocks-broken-tiptap-2250

@vercel

vercel Bot commented Aug 22, 2025 •

Copy link
Copy Markdown

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

Project Deployment Preview Updated (UTC)
blocknote Ready Ready Preview Aug 25, 2025 9:28am
blocknote-website Ready Ready Preview Aug 25, 2025 9:28am

@pkg-pr-new

pkg-pr-new Bot commented Aug 22, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

@blocknote/ariakit

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

@blocknote/code-block

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

@blocknote/core

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

@blocknote/mantine

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

@blocknote/react

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

@blocknote/server-util

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

@blocknote/shadcn

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

@blocknote/xl-ai

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

@blocknote/xl-docx-exporter

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

@blocknote/xl-email-exporter

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

@blocknote/xl-multi-column

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

@blocknote/xl-odt-exporter

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

@blocknote/xl-pdf-exporter

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

commit: 581b88d

@MetaMmodern

Copy link
Copy Markdown

Thank you!

@alibiyabani

Copy link
Copy Markdown

thanks bro

vitallygolovanov added a commit to vitallygolovanov/BlockNote that referenced this pull request May 29, 2026
…rgets

- Add attachStyledInlineContentRef helper for editable inline node views
- Apply helper in node view, renderHTML, and external HTML render paths
- Fix styled inline editing per BlockNote PR TypeCellOS#1954 / issue TypeCellOS#1844
vitallygolovanov added a commit to vitallygolovanov/BlockNote that referenced this pull request Jun 18, 2026
…rgets

- Add attachStyledInlineContentRef helper for editable inline node views
- Apply helper in node view, renderHTML, and external HTML render paths
- Fix styled inline editing per BlockNote PR TypeCellOS#1954 / issue TypeCellOS#1844

This branch was successfully deployed

2 active deployments
Preview – blocknote-website — 581b88d7 Deployed Aug 25, 2025 by vercel[bot]
Preview – blocknote — 581b88d7 Deployed Aug 25, 2025 by vercel[bot]
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.

copy and paste issue on custom block note "Cursor" placed incorrectly when adding custom block

3 participants