[Bug]: insertContent does nothing if the requested content already exists at the position #4291
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
Which packages did you experience the bug in?
core
What Tiptap version are you using?
2.1.0-rc.12
What’s the bug you are facing?
I'd expect that
insertContent('<p></p>')
inside of an empty paragraph would result in another paragraph, but instead it does nothing. This indeterminacy makes building more complex commands difficult because you can't rely oninsertContent
to do the same thing under all circumstances.What browser are you using?
Chrome
Code example
No response
What did you expect to happen?
insertContent('<p></p>')
inside of an empty paragraph should insert another empty paragraph.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: