Scheduling infrastructure for absolutely everyone.
Add HistoryPlugin to the Editor UI component (#8603)
Praneeth Bhogaraju4b4c1200cdb4
diff --git a/packages/ui/components/editor/Editor.tsx b/packages/ui/components/editor/Editor.tsxindex 4ba3e95513f..d379bf9ca44 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) => {<ListPlugin /><LinkPlugin /><AutoLinkPlugin />+ <HistoryPlugin /><MarkdownShortcutPlugintransformers={props.disableLists