TinyMCE:API/tinymce.Editor/onSubmit
From Moxiecode Documentation Wiki
Contents |
[edit]
Event: onSubmit
[edit]
Summary
This event gets executed when the form that the editor is placed in gets submitted.
[edit]
Syntax
event_callback(<tinymce.Editor> ed, <Event> e)
[edit]
Parameters
- ed
- Sender object/Editor instance that the event occurred in.
- e
- DOM Event object, includes things like target for the event.
[edit]
Examples
// Adds an observer to the onSubmit event using tinyMCE.init
tinyMCE.init({
...
setup : function(ed) {
ed.onSubmit.add(function(ed, e) {
console.debug('Form submit:' + e.target);
});
}
});
// Adds an observer to the onSubmit event using the render method
var ed = new tinymce.Editor('someid', {
.. Some settings
});
ed.onSubmit.add(function(ed, e) {
console.debug('Form submit:' + e.target);
});
ed.render();
