Skip to content

Add undo/redo support to MindMapEditor#302

Open
Pragzh wants to merge 1 commit into
lovelymahor:mainfrom
Pragzh:add-mindmap-undo-redo
Open

Add undo/redo support to MindMapEditor#302
Pragzh wants to merge 1 commit into
lovelymahor:mainfrom
Pragzh:add-mindmap-undo-redo

Conversation

@Pragzh

@Pragzh Pragzh commented May 21, 2026

Copy link
Copy Markdown

What changed

  • Added undo and redo support to the MindMapEditor.
  • Added Undo and Redo buttons in the toolbar.
  • Added keyboard shortcuts for Ctrl+Z and Ctrl+Y.
  • Saved editor history before node drag, delete, edit, import, template, and arrange actions.

Why

Users previously had no way to recover from accidental edits while creating or modifying mind maps.

Testing

  • Added a node and verified Undo removes it.
  • Used Redo to restore the node.
  • Moved a node and verified Undo restores the previous position.
  • Deleted a node and verified Undo restores it.
  • Tested Ctrl+Z and Ctrl+Y shortcuts.
  • Ran npm run build successfully.

Fixes #109

@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

@Pragzh is attempting to deploy a commit to the Lovely Mahour's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Pragzh

Pragzh commented May 26, 2026

Copy link
Copy Markdown
Author

Hi @maintainer, my PR checks are failing because Vercel deployment needs team authorization. Could you please authorize the Vercel check when possible? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add undo/redo support to MindMapEditor

1 participant