From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/base/prompt-editor/plugins/custom-text/node.tsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/components/base/prompt-editor/plugins/custom-text/node.tsx b/app/components/base/prompt-editor/plugins/custom-text/node.tsx
index 49f4a05..5df4894 100644
--- a/app/components/base/prompt-editor/plugins/custom-text/node.tsx
+++ b/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)

--
Gitblit v1.8.0