Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <jonas@freesources.org>2022-09-05 13:20:21 +0300
committerJonas <jonas@freesources.org>2022-09-05 13:35:13 +0300
commit522c8b29b9bd4297af9bdd68bfb58915a171dbaf (patch)
tree25c9adf6cc83a60c72301294d740dd135749de96 /src/components/Editor
parent0944ebf63a2a47c0e3fb98efb42f4cab9535b444 (diff)
Append a newline after inserted imagefix/image_newline
When uploading/inserting multiple images at once, an empty line will be in between the images. This makes it easier to place content in between the images. Fixes: #2784 Signed-off-by: Jonas <jonas@freesources.org>
Diffstat (limited to 'src/components/Editor')
-rw-r--r--src/components/Editor/MediaHandler.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Editor/MediaHandler.vue b/src/components/Editor/MediaHandler.vue
index 41d2b0754..7004b5b16 100644
--- a/src/components/Editor/MediaHandler.vue
+++ b/src/components/Editor/MediaHandler.vue
@@ -188,7 +188,7 @@ export default {
? this.$editor.chain().focus(position)
: this.$editor.chain()
- chain.setImage({ src, alt }).focus().run()
+ chain.setImage({ src, alt }).insertContent('<br />').focus().run()
},
},
}