mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-65450-master' of https://github.com/ryanwyllie/moodle
This commit is contained in:
commit
70c1f17d7b
@ -68,9 +68,11 @@ M.editor_tinymce.init_editor = function(Y, editorid, options) {
|
||||
});
|
||||
Y.use('event', 'moodle-core-event', function(Y) {
|
||||
var form = Y.one(document.getElementById(editor.id)).ancestor('form');
|
||||
form.on(M.core.event.FORM_SUBMIT_AJAX, function() {
|
||||
editor.save();
|
||||
}, this)
|
||||
if (form) {
|
||||
form.on(M.core.event.FORM_SUBMIT_AJAX, function() {
|
||||
editor.save();
|
||||
}, this);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user