From afd87a63908d0413704c61cfed3cff20f7311d71 Mon Sep 17 00:00:00 2001
From: Ollie Hsieh <renahlee@outlook.com>
Date: Thu, 27 Apr 2023 07:27:33 -0700
Subject: Add undo to web composer (#542)

---
 src/view/com/composer/text-input/TextInput.web.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/view/com/composer/text-input/TextInput.web.tsx')

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: {
-- 
cgit 1.4.1

