MDL-13766, mulit-filepicker in htmleditor worked.

This commit is contained in:
dongsheng 2008-08-05 08:12:21 +00:00
parent 77a2e1461b
commit 765943edc6
4 changed files with 9 additions and 5 deletions

View file

@ -4878,10 +4878,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v
$str .= '<div class="textareaicons">';
$str .= '<script type="text/javascript">
//<![CDATA[
function moodlefilemanager(field_name, url, type, win) {
var el = win.document.getElementById(field_name);
openpicker_'.$suffix.'({"env":"editor","target":el});
}
id2suffix[\''.$id.'\']=\''.$suffix.'\';
mce_saveOnSubmit(\''.addslashes_js($id).'\');
document.write(\''.addslashes_js($str_toggle).'\');
document.write(\''.addslashes_js(editorshortcutshelpbutton()).'\');