From 4b4c1200cdb4ac36beb23b45e7385a4212b5364f Mon Sep 17 00:00:00 2001 From: Praneeth Bhogaraju <47350983+Praneeth2k@users.noreply.github.com> Date: Tue, 2 May 2023 19:59:52 +0530 Subject: [PATCH] Add HistoryPlugin to the Editor UI component (#8603) * Add HistoryPlugin to the Editor UI component * Fix ESLint errors --------- Co-authored-by: Praneeth Bhogaraju Co-authored-by: Keith Williams --- packages/ui/components/editor/Editor.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ui/components/editor/Editor.tsx b/packages/ui/components/editor/Editor.tsx index 4ba3e95513..d379bf9ca4 100644 --- a/packages/ui/components/editor/Editor.tsx +++ b/packages/ui/components/editor/Editor.tsx @@ -4,6 +4,7 @@ import { ListItemNode, ListNode } from "@lexical/list"; import { TRANSFORMERS } from "@lexical/markdown"; import { LexicalComposer } from "@lexical/react/LexicalComposer"; import { ContentEditable } from "@lexical/react/LexicalContentEditable"; +import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin"; import { LinkPlugin } from "@lexical/react/LexicalLinkPlugin"; import { ListPlugin } from "@lexical/react/LexicalListPlugin"; import { MarkdownShortcutPlugin } from "@lexical/react/LexicalMarkdownShortcutPlugin"; @@ -87,6 +88,7 @@ export const Editor = (props: TextEditorProps) => { +