Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Copied codeBlock is incorrectly pasted into another (next) node #4778

Open
1 of 2 tasks
junruxiong opened this issue Jan 12, 2024 · 0 comments
Open
1 of 2 tasks
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

Comments

@junruxiong
Copy link

junruxiong commented Jan 12, 2024

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?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@junruxiong junruxiong added 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 labels Jan 12, 2024
@github-project-automation github-project-automation bot moved this to Triage open in Tiptap Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
No open projects
Status: Triage open
Development

No branches or pull requests

1 participant