Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
5163e704
authored
Nov 05, 2025
by
Archer
Committed by
GitHub
Nov 05, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: editor (#5859)
* fix: timeselector ui error * var update node * fix: editor * feat: add name watch
parent
44e87e30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
packages/web/components/common/Textarea/PromptEditor/utils.ts
+14
-2
projects/app/src/pageComponents/app/detail/WorkflowComponents/context/workflowInitContext.tsx
+1
-0
No files found.
packages/web/components/common/Textarea/PromptEditor/utils.ts
View file @
5163e704
...
...
@@ -524,9 +524,21 @@ export const editorStateToText = (editor: LexicalEditor) => {
return
node
.
children
.
map
(
extractText
).
join
(
''
);
}
// Unknown node type
// Unknown node type
- return the raw text content if available
console
.
warn
(
'Unknown node type in extractText:'
,
(
node
as
any
).
type
,
node
);
return
''
;
// Try to extract text content from unknown node types
if
(
'text'
in
node
&&
typeof
(
node
as
any
).
text
===
'string'
)
{
return
(
node
as
any
).
text
;
}
// Try to recursively extract from children if present
if
(
'children'
in
node
&&
Array
.
isArray
((
node
as
any
).
children
))
{
return
(
node
as
any
).
children
.
map
(
extractText
).
join
(
''
);
}
// Fallback to stringifying the node content
return
JSON
.
stringify
(
node
);
};
paragraphs
.
forEach
((
paragraph
)
=>
{
...
...
projects/app/src/pageComponents/app/detail/WorkflowComponents/context/workflowInitContext.tsx
View file @
5163e704
...
...
@@ -147,6 +147,7 @@ const WorkflowInitContextProvider = ({
nodesMap
[
node
.
data
.
nodeId
]
=
node
.
data
;
compareNodeList
.
push
({
nodeId
:
node
.
data
.
nodeId
,
name
:
node
.
data
.
name
,
parentNodeId
:
node
.
data
.
parentNodeId
,
flowNodeType
:
node
.
data
.
flowNodeType
,
inputs
:
node
.
data
.
inputs
.
map
((
input
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment