diff options
author | Jonas <jonas@freesources.org> | 2022-02-22 18:57:10 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-03-01 12:29:13 +0300 |
commit | ba20dac6e98b3ced5921e33cab71193991a87506 (patch) | |
tree | 5a98a13f014301b3ab99a5ee1af5df46cadd5d52 /src/extensions | |
parent | 33c396a532899920759aea4e3b12cd8940f0e876 (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.js | 4 |
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 + ' ') }, } }, |