X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=editor_tests.coffee;h=c45895ad3a6177ef5a0b5ca7eee3ceeaf72b6b7b;hb=5130d7ea6218b16479641596928bf1442c29612d;hp=57772448840fe614bcb2028d5e24744d62cbd70d;hpb=8709cb94761099e91b480781b64323b169130d3a;p=peach-html5-editor.git diff --git a/editor_tests.coffee b/editor_tests.coffee index 5777244..c45895a 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, css_file: 'page_dark.css'