feat: Update the design of mentions with thumbnail (#5551)

This commit is contained in:
Pranav Raj S 2022-10-05 14:18:16 -07:00 committed by GitHub
parent 8b0e95ece8
commit cd4c1ef27e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 251 additions and 65 deletions

View file

@ -6,7 +6,7 @@
@click="insertMentionNode"
/>
<canned-response
v-if="showCannedMenu"
v-if="showCannedMenu && !isPrivate"
:search-key="cannedSearchTerm"
@click="insertCannedResponse"
/>
@ -223,8 +223,8 @@ export default {
return null;
}
const node = this.editorView.state.schema.nodes.mention.create({
userId: mentionItem.key,
userFullName: mentionItem.label,
userId: mentionItem.id,
userFullName: mentionItem.name,
});
const tr = this.editorView.state.tr.replaceWith(
@ -256,6 +256,7 @@ export default {
this.plugins
);
this.editorView.updateState(this.state);
this.focusEditorInputField();
return false;
},