mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix(ui): mentions not working when composing (#2655)
This commit is contained in:
parent
1ff13952b0
commit
48a8b74e7c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue