mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-27887 In developer debug, use uncompressed TinyMCE code.
This commit is contained in:
parent
c3f85e22d9
commit
a8c8641802
@ -67,7 +67,11 @@ class tinymce_texteditor extends texteditor {
|
||||
|
||||
public function use_editor($elementid, array $options=null, $fpoptions=null) {
|
||||
global $PAGE;
|
||||
if (debugging('', DEBUG_DEVELOPER)) {
|
||||
$PAGE->requires->js('/lib/editor/tinymce/tiny_mce/'.$this->version.'/tiny_mce_src.js');
|
||||
} else {
|
||||
$PAGE->requires->js('/lib/editor/tinymce/tiny_mce/'.$this->version.'/tiny_mce.js');
|
||||
}
|
||||
$PAGE->requires->js_init_call('M.editor_tinymce.init_editor', array($elementid, $this->get_init_params($elementid, $options)), true);
|
||||
if ($fpoptions) {
|
||||
$PAGE->requires->js_init_call('M.editor_tinymce.init_filepicker', array($elementid, $fpoptions), true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user