Skip to content

Commit

Permalink
MINOR Fixed event naming
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jun 14, 2012
1 parent 2fa835a commit 40cef4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions javascript/HtmlEditorField.js
Expand Up @@ -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();
Expand All @@ -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
Expand All @@ -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');
});
Expand Down

0 comments on commit 40cef4d

Please sign in to comment.