X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor_tests.coffee;h=c45895ad3a6177ef5a0b5ca7eee3ceeaf72b6b7b;hp=27a891da2f676341c2fe31a7170e1b8f59cbe050;hb=e3b396215f59cd45b7d7c510dcddea8354f756aa;hpb=0f0011fe19f527abc6d67c7245720d5d451085f5 diff --git a/editor_tests.coffee b/editor_tests.coffee index 27a891d..c45895a 100644 --- a/editor_tests.coffee +++ b/editor_tests.coffee @@ -1,15 +1,4 @@ in_el = document.getElementById 'in' button = document.getElementById 'button' -editor = null -button.onclick = in_el.onchange = in_el.onkeyup = -> - #button.value="Reload" - if editor? - editor.load_html in_el.value - else - # first run - button.parentNode.removeChild button - editor = peach.wysiwyg in_el - return false -button.value="Load" -button.removeAttribute 'disabled' -button.click() +button.parentNode.removeChild button +window.editor = peach_html5_editor in_el, css_file: 'page_dark.css'