From 40cef4d584cfc9894af5c2c50fd7cc5631163b07 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 14 Jun 2012 23:18:25 +0200 Subject: [PATCH] MINOR Fixed event naming --- javascript/HtmlEditorField.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/javascript/HtmlEditorField.js b/javascript/HtmlEditorField.js index 5fb04675e..e2f4fbc90 100644 --- a/javascript/HtmlEditorField.js +++ b/javascript/HtmlEditorField.js @@ -228,7 +228,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE; while (parent && parent.nodeType == 1) parent = parent.parentNode; if (!parent) $(source).unbind().remove(); - }) + }); } this._super(); @@ -239,7 +239,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE; }, fromContainingForm: { - onbeforesave: function(){ + onbeforesubmitform: function(){ if(this.isChanged()) { this.getEditor().save(); this.trigger('change'); // TinyMCE assigns value attr directly, which doesn't trigger change event @@ -265,7 +265,6 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE; // Create editor instance and render it. // Similar logic to adapter/jquery/jquery.tinymce.js, but doesn't rely on monkey-patching // jQuery methods, and avoids replicate the script lazyloading which is already in place with jQuery.ondemand. - ed.create(this.attr('id'), config, function() { self.css('visibility', 'visible'); });