ソースを参照

feat: prompt-editor support undo (#3242)

tags/0.6.1
zxhlyh 1年前
コミット
39d3fc4742
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更2行の追加0行の削除
  1. 2
    0
      web/app/components/base/prompt-editor/index.tsx

+ 2
- 0
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<PromptEditorProps> = ({
<OnChangePlugin onChange={handleEditorChange} />
<OnBlurBlock onBlur={onBlur} onFocus={onFocus} />
<UpdateBlock instanceId={instanceId} />
<HistoryPlugin />
{/* <TreeView /> */}
</div>
</LexicalComposer>

読み込み中…
キャンセル
保存