mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed event naming
This commit is contained in:
parent
2fa835a027
commit
40cef4d584
@ -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');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user