-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
Description
Describe the bug
When loading an existing file that contains images the focus jumps to the alt text input
To Reproduce
Steps to reproduce the behavior:
- Create a new file with some long text
- Add an image after it
- Move the cursor to the top
- Close and reopen the file
Expected behavior
The cursor is at the beginning
Actual behaviour
The cursor is in the alt text of the image
Additional context
This seems like a side effect of #6609
I'm unsure what the best way would be to catch only inserting new attachments. @max-nextcloud Any idea on how we could check that? I don't see any hooks for tiptap node or node views that would only trigger on first creation. Maybe we can override the setImage command and pass a non-persited flag to focus once?
MrRinkana
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
☑️ Done