diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-21 16:30:34 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-28 10:26:08 +0100 |
commit | 72aeb8ef05e3d2b1cf63c659648ad8659474903b (patch) | |
tree | 365cdd1744e1e2e14e83fafba970030675eca253 /apps/comments/src/components | |
parent | 3cb10bc66f004892d5bfc77fbb0f9a4634a7ff47 (diff) | |
download | nextcloud-server-72aeb8ef05e3d2b1cf63c659648ad8659474903b.tar.gz nextcloud-server-72aeb8ef05e3d2b1cf63c659648ad8659474903b.zip |
Add mentions data
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/comments/src/components')
-rw-r--r-- | apps/comments/src/components/Comment.vue | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index 8324305873c..a8a46ba031f 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -67,7 +67,8 @@ <!-- Message editor --> <div class="comment__editor " v-if="editor || editing"> - <RichContenteditable v-model="localMessage" + <RichContenteditable ref="editor" + v-model="localMessage" :auto-complete="autoComplete" :contenteditable="!loading" @submit="onSubmit" /> @@ -121,10 +122,6 @@ export default { inheritAttrs: false, props: { - source: { - type: Object, - default: () => ({}), - }, actorDisplayName: { type: String, required: true, @@ -227,6 +224,10 @@ export default { if (this.editor) { this.onNewComment(this.localMessage.trim()) + this.$nextTick(() => { + // Focus the editor again + this.$refs.editor.$el.focus() + }) return } this.onEditComment(this.localMessage.trim()) |