1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 06:18:07 +09:00

fix(ui): mentions not working when composing (#2655)

This commit is contained in:
Joaquín Sánchez 2024-03-06 16:42:41 +01:00 committed by GitHub
parent 1ff13952b0
commit 48a8b74e7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,6 +55,9 @@ export function useTiptap(options: UseTiptapOptions) {
},
}),
Mention.configure({
renderHTML({ options, node }) {
return ['span', { 'data-type': 'mention', 'data-id': node.attrs.id }, `${options.suggestion.char}${node.attrs.label ?? node.attrs.id}`]
},
suggestion: TiptapMentionSuggestion,
}),
Mention