moebius-web

web based ansi art editor

moebius-web

tools/clear.js


function clearTool(editor) {
    "use strict";

    function init() {
        editor.clearImage();
        editor.clearUndoHistory();
        return false;
    }

    function toString() {
        return "Clear";
    }

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

Download

raw zip tar