MDL-42625 TinyMCE: Hook into API to track the progress of the init script
This commit is contained in:
committed by
David Monllao
parent
9f8ef4294a
commit
fb64bae5e2
@@ -43,6 +43,8 @@ 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";
|
||||
}
|
||||
|
||||
M.editor_tinymce.editor_options[editorid] = options;
|
||||
@@ -86,6 +88,10 @@ M.editor_tinymce.init_editor = function(Y, editorid, options) {
|
||||
}
|
||||
};
|
||||
|
||||
M.editor_tinymce.init_callback = function() {
|
||||
M.util.js_complete('editors');
|
||||
}
|
||||
|
||||
M.editor_tinymce.init_filepicker = function(Y, editorid, options) {
|
||||
M.editor_tinymce.filepicker_options[editorid] = options;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user