Commit f86dae25 authored by Michael Murtaugh's avatar Michael Murtaugh

change

parent d52d6b57
...@@ -45,6 +45,18 @@ window.addEventListener("DOMContentLoaded", function () { ...@@ -45,6 +45,18 @@ window.addEventListener("DOMContentLoaded", function () {
// console.log("save"); // console.log("save");
save(); save();
} }
if (e.ctrlKey && e.key == "e") {
e.preventDefault();
// TOGGLE CONTENTEDITABLE
var cv = document.body.getAttribute("contenteditable");
if (cv === null || cv === undefined) {
document.body.setAttribute("contenteditable", "");
console.log("contenteditable enabled");
} else {
document.body.removeAttribute("contenteditable");
console.log("contenteditable disabled");
}
}
// var request = new XMLHttpRequest(); // var request = new XMLHttpRequest();
// request.open('POST', '/my/url', true); // request.open('POST', '/my/url', true);
// request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); // request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment