From 4f7bc371f9186e0e85196411a2d04ee4d4e7e5c4 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 6 Dec 2023 12:47:38 +0100 Subject: [PATCH] fix(MediaHandler): Remove workaround to add newline between images Fixes: #3427 Signed-off-by: Jonas --- src/components/Editor/MediaHandler.vue | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/Editor/MediaHandler.vue b/src/components/Editor/MediaHandler.vue index f97c2652c4..e84ee5abff 100644 --- a/src/components/Editor/MediaHandler.vue +++ b/src/components/Editor/MediaHandler.vue @@ -203,14 +203,8 @@ export default { // subsequent editor inserts (see tiptap#3355). So unselect the image by placing // the cursor at the end of the selection. this.$editor.commands.focus(selection.to) - } else { - // Place the cursor after the inserted image node - this.$editor.commands.focus(selection.to + 2) } - // Insert a newline to allow placing the cursor in between subsequent images - this.$editor.chain().insertContent('
').focus().run() - // Scroll image into view this.$editor.commands.scrollIntoView()