[Bug]: editor.commands.selectAll() does in fact not select all #5516
Closed
Description
Affected Packages
core
Version(s)
2.6.4
Bug Description
Pressing Mod-a in the editor does not select the entire table if its the first node, and therefore Mod-a delete deletes everything except the first table cell. The video below shows the bug. This behaviour can be reproduced by dragging a table to the first position in the tiptap showcase editor (or any other tiptap editor)
Unbenanntes.Video.Mit.Clipchamp.erstellt.mp4
Browser Used
Chrome
Code Example URL
No response
Expected Behavior
Pressing Mod-a and deletion afterwards should delete all nodes
Additional Context (Optional)
I fixed the problem by manually creating a text selection instead of using editor.commands.setTextSelection(), so the problem is caused by the implementation of "setTextSelection".
The commented out version does not work
Unbenanntes.Video.Mit.Clipchamp.erstellt.2.mp4
Dependency Updates
- Yes, I've updated all my dependencies.