X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=editor_tests.coffee;h=d0c71fdfad51b4cb55c852c11c9e3f31001398a6;hb=78a645242be2358e81bdf56a82c7fc3a4564e4d9;hp=27a891da2f676341c2fe31a7170e1b8f59cbe050;hpb=1b122e1b7a9a295a994ce399b84f3db7f682e470;p=peach-html5-editor.git diff --git a/editor_tests.coffee b/editor_tests.coffee index 27a891d..d0c71fd 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 +editor = peach_html5_editor in_el