Line 78: | Line 78: | ||
qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}}); | qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}}); | ||
}; | }; | ||
− | document.body.onkeydown = function(e){if (e.keyCode == 27){html.innerHTML = qs("textarea"). | + | document.body.onkeydown = function(e){if (e.keyCode == 27){html.innerHTML = qs("textarea").value;renderPage();qs("#ting").contentEditable="true"}} |
}) | }) | ||
} | } |
Revision as of 22:42, 29 October 2017