ソースを参照

fix: prompt editor linebreak (#3036)

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

+ 2
- 0
web/app/components/base/prompt-editor/index.tsx ファイルの表示

$getRoot, $getRoot,
TextNode, TextNode,
} from 'lexical' } from 'lexical'
import { CodeNode } from '@lexical/code'
import { LexicalComposer } from '@lexical/react/LexicalComposer' import { LexicalComposer } from '@lexical/react/LexicalComposer'
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin' import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'
import { ContentEditable } from '@lexical/react/LexicalContentEditable' import { ContentEditable } from '@lexical/react/LexicalContentEditable'
const initialConfig = { const initialConfig = {
namespace: 'prompt-editor', namespace: 'prompt-editor',
nodes: [ nodes: [
CodeNode,
CustomTextNode, CustomTextNode,
{ {
replace: TextNode, replace: TextNode,

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