Line 58: | Line 58: | ||
qs(".JC #content-body").contentEditable = 'true'; | qs(".JC #content-body").contentEditable = 'true'; | ||
qs(".JC #content-body").oninput = function(){ | qs(".JC #content-body").oninput = function(){ | ||
− | qs('textarea').value = "<div" + (qs("#content-index").style.display=="none"? | + | qs('textarea').value = "<div" + (qs("#content-index").style.display=="none"?' data-wiki="false" data-templated="false"':"")+">" + qs('.JC #content-body').innerHTML+"<\/div><html><script>window.location='/Team:Judd_UK/" + page.replace("*", "/") + "'<\/script><\/html>"; |
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()}}); | ||
}; | }; |
Revision as of 00:15, 29 October 2017