Add undo to web composer (#542)

This commit is contained in:
Ollie Hsieh 2023-04-27 07:27:33 -07:00 committed by GitHub
parent a81158bd2a
commit afd87a6390
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import {StyleSheet, View} from 'react-native'
import {RichText} from '@atproto/api'
import {useEditor, EditorContent, JSONContent} from '@tiptap/react'
import {Document} from '@tiptap/extension-document'
import History from '@tiptap/extension-history'
import {Link} from '@tiptap/extension-link'
import {Mention} from '@tiptap/extension-mention'
import {Paragraph} from '@tiptap/extension-paragraph'
@ -70,6 +71,7 @@ export const TextInput = React.forwardRef(
placeholder,
}),
Text,
History,
],
editorProps: {
attributes: {