feat(canvas): 完善画布 Agent 交互能力
This commit is contained in:
@@ -353,6 +353,11 @@ export const CanvasNode = React.memo(function CanvasNode({
|
||||
onOpenTextEditor?.(data);
|
||||
return;
|
||||
}
|
||||
if (!readOnly && data.type === CanvasNodeType.Markdown) {
|
||||
event.stopPropagation();
|
||||
onOpenTextEditor?.(data);
|
||||
return;
|
||||
}
|
||||
if (readOnly || data.type !== CanvasNodeType.Text) return;
|
||||
event.stopPropagation();
|
||||
setIsEditingContent(true);
|
||||
|
||||
Reference in New Issue
Block a user