X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=editor_tests.coffee;h=7297567cadfb182b1beffe02924b933e62a08141;hb=75c161912d1bb3e184f5f6e3ae2171e6e2ebe3cb;hp=57772448840fe614bcb2028d5e24744d62cbd70d;hpb=8709cb94761099e91b480781b64323b169130d3a;p=peach-html5-editor.git diff --git a/editor_tests.coffee b/editor_tests.coffee index 5777244..7297567 100644 --- a/editor_tests.coffee +++ b/editor_tests.coffee @@ -1,13 +1,4 @@ in_el = document.getElementById 'in' -out_el = document.getElementById 'out' button = document.getElementById 'button' -editor = null -button.onclick = in_el.onchange = in_el.onkeyup = -> - if editor? - editor.load_html in_el - else - editor = wheic.wysiwyg in_el - editor.iframe.contentDocument.body.innerHTML = out_el.value = wheic.dom_to_html editor.dom - return false -button.value="Cleanup" -button.removeAttribute 'disabled' +button.parentNode.removeChild button +window.editor = peach_html5_editor in_el