feat: query for tiptap mention autocomplete (#120)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
This commit is contained in:
parent
baa05fc32f
commit
addbe1b567
4 changed files with 23 additions and 12 deletions
|
@ -44,9 +44,11 @@ export function useTiptap(options: UseTiptapOptions) {
|
|||
Mention.configure({
|
||||
suggestion: MentionSuggestion,
|
||||
}),
|
||||
Mention.configure({
|
||||
suggestion: HashSuggestion,
|
||||
}),
|
||||
Mention
|
||||
.extend({ name: 'hastag' })
|
||||
.configure({
|
||||
suggestion: HashSuggestion,
|
||||
}),
|
||||
Placeholder.configure({
|
||||
placeholder,
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue