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

@ -205,6 +205,12 @@ $output .= <<<EOF
prevOnSubmit = null;
};
}
function moodlefilemanager(field_name, url, type, win) {
//alert(id2suffix[tinyMCE.selectedInstance.editorId]);
var suffix = id2suffix[tinyMCE.selectedInstance.editorId];
var el = win.document.getElementById(field_name);
eval('openpicker_'+suffix+'({"env":"editor","target":el})');
}
EOF;
$lifetime = '86400';