Skip to content

Commit

Permalink
feat: support editing after create floating node
Browse files Browse the repository at this point in the history
  • Loading branch information
Quorafind committed Jan 18, 2024
1 parent 783bdf5 commit d221dee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/canvasMindMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,14 @@ export default class CanvasMindMap extends Plugin {

const currentNode = canvas.nodes?.get(tempChildNode?.id!);
if (!currentNode) return;

canvas.selectOnly(currentNode);
canvas.zoomToSelection();

setTimeout(() => {
currentNode.startEditing();
}, 100);

return tempChildNode;
};

Expand Down

0 comments on commit d221dee

Please sign in to comment.