Difference between revisions of "Template:Team:Judd UK/TEMPLATE"

Line 77: Line 77:
 
             qs('.JC #content-body').innerHTML = qs('textarea').value;
 
             qs('.JC #content-body').innerHTML = qs('textarea').value;
 
             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()}}
             qs("textarea").value.replace("#TABLE!","<table style='width:100%'><tr><th>Heading 1</th><th>Heading 2</th><th>Heading 3</th></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></table>";
+
             qs("textarea").value = qs("textarea").value.replace("#TABLE!","<table style='width:100%'><tr><th>Heading 1</th><th>Heading 2</th><th>Heading 3</th></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></table>");
 
         };
 
         };
 
         document.body.onkeydown = function(e){if (e.keyCode == 27){html.innerHTML = qs("textarea").value;renderPage();qs("#ting").contentEditable="true"}}
 
         document.body.onkeydown = function(e){if (e.keyCode == 27){html.innerHTML = qs("textarea").value;renderPage();qs("#ting").contentEditable="true"}}

Revision as of 22:54, 29 October 2017

Contents

Designed by Aleksandur Murfitt