diff options
author | Ollie Hsieh <renahlee@outlook.com> | 2023-04-27 07:27:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 09:27:33 -0500 |
commit | afd87a63908d0413704c61cfed3cff20f7311d71 (patch) | |
tree | 01365057e833700364ddc22fb4d38845b63ef788 /src | |
parent | a81158bd2a01ba976fb7d06a4d8e6ffa9416c9d3 (diff) | |
download | voidsky-afd87a63908d0413704c61cfed3cff20f7311d71.tar.zst |
Add undo to web composer (#542)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/composer/text-input/TextInput.web.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index f21d4ac1a..ef7676617 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -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: { |