Skip to content
Branch: master
Clone or download
Latest commit cd24463 Jan 5, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
demos Update textearea demo to use contentedtiable, add keyboard undo/redo Mar 2, 2011
tests Fix Stack._clearRedo Feb 28, 2011
vendor Initial Undo.js. Feb 27, 2011 Readme: Convert to markdown and mention installation via npm May 2, 2014
undo.js add AMD support Jan 5, 2015


Undo.js provides an abstraction for undoing and redoing any task. It can run both in the browser and on the server (targetted at node.js). It can be used to add undo and redo features to a custom application, e.g. undo and redo changing the priority of a task in a TODO list. It can also be used to undo and redo native browser features: Clicking a checkbox, editing a textbox and eventually, editing a contenteditable element.

The base abstraction will stay independent of any framework, while plugins, like a command editing a sortable list, will likely depend on libraries such as jQuery.


Via npm: npm install undo.js

Roadmap for demos to add:

  • Extend sortable list demo with jQuery UI sortable
  • form: track all form changes: text input, checkbox change, radio change, select change
  • add undo/redo to Backbone TODO demo
  • contenteditable with bold command


To suggest a feature, report a bug, or general discussion:

You can’t perform that action at this time.