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-02-22 18:57:10 +0300
committerMax <max@nextcloud.com>2022-03-01 12:29:13 +0300
commitba20dac6e98b3ced5921e33cab71193991a87506 (patch)
tree5a98a13f014301b3ab99a5ee1af5df46cadd5d52 /src/extensions
parent33c396a532899920759aea4e3b12cd8940f0e876 (diff)
Append a whitespace to inserted emojis
Signed-off-by: Jonas <jonas@freesources.org> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'src/extensions')
-rw-r--r--src/extensions/Emoji.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extensions/Emoji.js b/src/extensions/Emoji.js
index d3de2ac93..fa060ef68 100644
--- a/src/extensions/Emoji.js
+++ b/src/extensions/Emoji.js
@@ -39,7 +39,7 @@ const Emoji = Node.create({
editor
.chain()
.focus()
- .insertContentAt(range, props.native)
+ .insertContentAt(range, props.native + ' ')
.run()
},
},
@@ -51,7 +51,7 @@ const Emoji = Node.create({
addCommands() {
return {
emoji: (emojiObject) => ({ commands }) => {
- return commands.insertContent(emojiObject.native)
+ return commands.insertContent(emojiObject.native + ' ')
},
}
},