Skip to content
This repository
Browse code

MINOR Fixed event naming

  • Loading branch information...
commit 40cef4d584cfc9894af5c2c50fd7cc5631163b07 1 parent 2fa835a
Ingo Schommer authored June 14, 2012

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  javascript/HtmlEditorField.js
5  javascript/HtmlEditorField.js
@@ -228,7 +228,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
228 228
 						while (parent && parent.nodeType == 1) parent = parent.parentNode;
229 229
 
230 230
 						if (!parent) $(source).unbind().remove();
231  
-					})
  231
+					});
232 232
 				}
233 233
 
234 234
 				this._super();
@@ -239,7 +239,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
239 239
 			},
240 240
 
241 241
 			fromContainingForm: {
242  
-				onbeforesave: function(){
  242
+				onbeforesubmitform: function(){
243 243
 					if(this.isChanged()) {
244 244
 						this.getEditor().save();
245 245
 						this.trigger('change'); // TinyMCE assigns value attr directly, which doesn't trigger change event
@@ -265,7 +265,6 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
265 265
 				// Create editor instance and render it.
266 266
 				// Similar logic to adapter/jquery/jquery.tinymce.js, but doesn't rely on monkey-patching
267 267
 				// jQuery methods, and avoids replicate the script lazyloading which is already in place with jQuery.ondemand.
268  
-
269 268
 				ed.create(this.attr('id'), config, function() {
270 269
 					self.css('visibility', 'visible');
271 270
 				});

0 notes on commit 40cef4d

Please sign in to comment.
Something went wrong with that request. Please try again.