feat(tiptap): add discord-style emoji suggestion support (#1066)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
Yuexun Jiang 2023-01-16 18:22:26 +08:00 committed by GitHub
parent 9898a19358
commit e847f8ef1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 172 additions and 0 deletions

View file

@ -58,6 +58,11 @@ export function useTiptap(options: UseTiptapOptions) {
.configure({
suggestion: HashtagSuggestion,
}),
Mention
.extend({ name: 'emoji' })
.configure({
suggestion: EmojiSuggestion,
}),
Placeholder.configure({
placeholder: () => placeholder.value!,
}),