add TagDecorator plugin

This commit is contained in:
Eric Bailey
2023-09-25 14:15:47 -05:00
parent 47273cccb1
commit 763edc8fb3
2 changed files with 82 additions and 0 deletions
@@ -18,6 +18,7 @@ import {isUriImage, blobToDataUri} from 'lib/media/util'
import {Emoji} from './web/EmojiPicker.web'
import {LinkDecorator} from './web/LinkDecorator'
import {generateJSON} from '@tiptap/html'
import {TagDecorator} from './web/TagDecorator'
export interface TextInputRef {
focus: () => void
@@ -57,6 +58,7 @@ export const TextInput = React.forwardRef(function TextInputImpl(
() => [
Document,
LinkDecorator,
TagDecorator,
Mention.configure({
HTMLAttributes: {
class: 'mention',