1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-08 01:49:58 +00:00

fix(ui): hashtags not working when composing (#2686)

This commit is contained in:
Joaquín Sánchez 2024-03-12 21:47:05 +01:00 committed by GitHub
parent 5a9546ec0a
commit 7703565c75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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