mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-54633-master-tinymce' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
b887c81907
@ -45,6 +45,7 @@ M.editor_tinymce.init_editor = function(Y, editorid, options) {
|
||||
M.editor_tinymce.initialised = true;
|
||||
M.util.js_pending('editors');
|
||||
options.oninit = "M.editor_tinymce.init_callback";
|
||||
options.onchange_callback = "M.editor_tinymce.onchange_callback";
|
||||
}
|
||||
|
||||
M.editor_tinymce.editor_options[editorid] = options;
|
||||
@ -92,6 +93,12 @@ M.editor_tinymce.init_callback = function() {
|
||||
M.util.js_complete('editors');
|
||||
}
|
||||
|
||||
M.editor_tinymce.onchange_callback = function(editorinstance) {
|
||||
// We need to keep the underlying textarea in sync so that when the form
|
||||
// validator is triggered, it has the value property up-to-date.
|
||||
editorinstance.save();
|
||||
};
|
||||
|
||||
M.editor_tinymce.init_filepicker = function(Y, editorid, options) {
|
||||
M.editor_tinymce.filepicker_options[editorid] = options;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user