Skip to content

Commit

Permalink
fix(ui): mentions not working when composing (#2655)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Mar 6, 2024
1 parent 1ff1395 commit 48a8b74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions composables/tiptap.ts
Expand Up @@ -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
Expand Down

0 comments on commit 48a8b74

Please sign in to comment.