Skip to content

[Bug]: editor.commands.selectAll() does in fact not select all #5516

Closed
@Edunity-Learning

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
image

Unbenanntes.Video.Mit.Clipchamp.erstellt.2.mp4

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Assignees

No one assigned

    Labels

    Category: Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.Type: BugThe issue or pullrequest is related to a bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions