Add HistoryPlugin to the Editor UI component (#8603)
* Add HistoryPlugin to the Editor UI component * Fix ESLint errors --------- Co-authored-by: Praneeth Bhogaraju <[email protected]> Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 file changed
+2
@@ -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 />
|
||||
<MarkdownShortcutPlugin
|
||||
transformers={
|
||||
props.disableLists
|
||||
|
||||
Reference in new issue
Block a user