From 39d3fc4742b1bb95585c843c11c9f40b3c7167b2 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 9 Apr 2024 18:18:53 +0800 Subject: [PATCH] feat: prompt-editor support undo (#3242) --- web/app/components/base/prompt-editor/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app/components/base/prompt-editor/index.tsx b/web/app/components/base/prompt-editor/index.tsx index ebf37bc52a..4b7315c742 100644 --- a/web/app/components/base/prompt-editor/index.tsx +++ b/web/app/components/base/prompt-editor/index.tsx @@ -15,6 +15,7 @@ import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin' import { ContentEditable } from '@lexical/react/LexicalContentEditable' import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary' import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin' +import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin' // import TreeView from './plugins/tree-view' import Placeholder from './plugins/placeholder' import ComponentPickerBlock from './plugins/component-picker-block' @@ -208,6 +209,7 @@ const PromptEditor: FC = ({ + {/* */}