Browse Source

fix: prompt editor linebreak (#3036)

tags/0.5.11
zxhlyh 1 year ago
parent
commit
218f591a5d
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      web/app/components/base/prompt-editor/index.tsx

+ 2
- 0
web/app/components/base/prompt-editor/index.tsx View File

@@ -9,6 +9,7 @@ import {
$getRoot,
TextNode,
} from 'lexical'
import { CodeNode } from '@lexical/code'
import { LexicalComposer } from '@lexical/react/LexicalComposer'
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'
import { ContentEditable } from '@lexical/react/LexicalContentEditable'
@@ -118,6 +119,7 @@ const PromptEditor: FC<PromptEditorProps> = ({
const initialConfig = {
namespace: 'prompt-editor',
nodes: [
CodeNode,
CustomTextNode,
{
replace: TextNode,

Loading…
Cancel
Save