[Bug]: insertContentAt should either document that it changes selection or it should not change selection #4213
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Triage: Open
A new issue or pullrequest that requires triage (added by default)
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.11
What’s the bug you are facing?
I find it frustrating that
insertContentAt
changes the selection. This severely limits its usefulness and this behavior is undocumented. There's no suggestion it will affect selection but it does.What browser are you using?
Chrome
Code example
No response
What did you expect to happen?
insertContentAt
inserts content only, without changing selection.Anything to add? (optional)
If it's necessary to change the selection then it should come with an option to revert the selection after.
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: