app/components/base/prompt-editor/plugins/custom-text/node.tsx
@@ -1,4 +1,4 @@ import type { EditorConfig, SerializedTextNode } from 'lexical' import type { EditorConfig, NodeKey, SerializedTextNode } from 'lexical' import { $createTextNode, TextNode } from 'lexical' export class CustomTextNode extends TextNode { @@ -10,9 +10,9 @@ return new CustomTextNode(node.__text, node.__key) } // constructor(text: string, key?: NodeKey) { // super(text, key) // } constructor(text: string, key?: NodeKey) { super(text, key) } createDOM(config: EditorConfig) { const dom = super.createDOM(config)