[Bug]: Copied codeBlock is incorrectly pasted into another (next) node #4778
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
core,react, StarterKit
What Tiptap version are you using?
latest version
What’s the bug you are facing?
I have my custom node, the doc is composed of my custom nodes, and the content in each node is block*. When I paste a codeBlock from the IDE on the last line or end of the current editing node, this code is pasted into the next node instead of the current node. I tried using other tiptap-based editors similar to Notion such as novel.sh, and they all have the same bug.
Please see the below screen record.
20240112_111544.mp4
What browser are you using?
Chrome
Code example
https://codesandbox.io/p/sandbox/musing-tereshkova-cg9hjd?file=%2Fsrc%2FApp.js
What did you expect to happen?
I want to paste the copied codeBlock into the block/node I am currently editing.
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: