-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Problem when using insertContent with a text node list #2770
Comments
Text @GitHubish What was the last version where it worked for you? |
@gazben It's hard to say, I couldn't necessarily find when it stopped working, it was a very specific part of my application for which the tests were not yet developed. Maybe version 2.0.0-beta.168 or 2.0.0-beta.170... In my tests the insertContent method does not crash but just does nothing. For example adding several Nodes in the paragraph where there is the cursor does not work although it was before. My use case is a copy/paste. I intercept the event to send the text to the server so that it can parse it and send me back a rich content (JSON format). For example a text with an @mention will be automatically transformed by the server as Slack would do and thus send me back the necessary information to display the mention. |
yepp same for me, I'll try older versions |
Hi all, I am working on the same issue as @gazben, and I found a fix: |
On my side, following the previous solution proposed by @sebinemeth I had to convert my JSON to HTML using the generateHTML method. Clearly not adapted... I hope that the Tiptap team will consult this ticket to give us a feedback. |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Just pushed a fix for this |
What’s the bug you are facing?
I just found a regression. When I paste text in my editor, I call the server so it can parse it. I just saw that it doesn't work anymore I had a result showing :

I thought the problem was coming from somewhere else but in fact when I execute this piece of code in a blank project I also have the problem. Before it was working.
Demo here : https://codesandbox.io/s/tiptap-demo-tailwind-forked-ewe285?file=/src/index.js
Which browser was this experienced in? Are any special extensions installed?
Chrome 100, Safari, Firefox Latest
How can we reproduce the bug on our side?
Use this code :
Can you provide a CodeSandbox?
https://codesandbox.io/s/tiptap-demo-tailwind-forked-ewe285?file=/src/index.js
What did you expect to happen?
It used to insert the nodes without any problem.
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: