Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unselect uploaded image in case it is the first element in editor
Tiptap `setImage()` marks the added image as selected when added as first element in the document), which leads to the image being overwritten by subsequent `insertContent()` command. See ueberdosis/tiptap#3355 for the relevant upstream bug. Mitigate this bug by explicitly placing the cursor at the end of the selection between adding the image and the line break. Signed-off-by: Jonas <jonas@freesources.org>
- Loading branch information