diff --git a/src/components/Editor/MediaHandler.vue b/src/components/Editor/MediaHandler.vue index f97c2652c4c..e84ee5abffa 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()