moebius-web

web based ansi art editor

moebius-web

tools/undo.js


function undoTool(toolbar) {
    "use strict";

    function init() {
        toolbar.editor.undo();
        return false;
    }

    function toString() {
        return "Undo";
    }

    return {
        "init": init,
        "toString": toString,
        "uid": "undo"
    };
}

AnsiEditController.addTool(undoTool, 122);

Download

raw zip tar