X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor_tests.coffee;h=c45895ad3a6177ef5a0b5ca7eee3ceeaf72b6b7b;hp=57772448840fe614bcb2028d5e24744d62cbd70d;hb=e3b396215f59cd45b7d7c510dcddea8354f756aa;hpb=8709cb94761099e91b480781b64323b169130d3a 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'