generators/wysihat/templates/javascripts/wysihat_engine.js in wysihat-engine-0.1.4 vs generators/wysihat/templates/javascripts/wysihat_engine.js in wysihat-engine-0.1.5

- old
+ new

@@ -65,14 +65,16 @@ editor.observe("wysihat:paste", function(event) { setTimeout(function() { event.target.reload(); }, 1); }); + + $$('form').each(function(f){ + f.onsubmit = function(){ + editor.save(); + } + }); }); - - $$('form').each().onsubmit = function(){ - editor.save(); - }; }); function addButtons(tag_id, buttons){ Event.observe(window, 'load', function() { buttons.each(function(button){ \ No newline at end of file