fix(ui): hashtags not working when composing (#2686)
parent
5a9546ec0a
commit
7703565c75
|
@ -63,6 +63,9 @@ export function useTiptap(options: UseTiptapOptions) {
|
||||||
Mention
|
Mention
|
||||||
.extend({ name: 'hashtag' })
|
.extend({ name: 'hashtag' })
|
||||||
.configure({
|
.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,
|
suggestion: TiptapHashtagSuggestion,
|
||||||
}),
|
}),
|
||||||
Mention
|
Mention
|
||||||
|
|
Loading…
Reference in New Issue