MDL-27887 In developer debug, use uncompressed TinyMCE code.

This commit is contained in:
Tim Hunt 2011-06-16 16:49:05 +01:00
parent c3f85e22d9
commit a8c8641802

View File

@ -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);