MDL-24416, fixed the problem of using file picker in tinymce fullscreen mode

This commit is contained in:
Dongsheng Cai 2010-09-29 08:03:52 +00:00
parent 0bd269b7a2
commit 5a2543286f

View File

@ -50,6 +50,9 @@ M.editor_tinymce.filepicker_callback = function(args) {
M.editor_tinymce.filepicker = function(target_id, url, type, win) {
YUI(M.yui.loader).use('core_filepicker', function (Y) {
var editor_id = tinyMCE.selectedInstance.editorId;
if (editor_id == 'mce_fullscreen') {
editor_id = tinyMCE.selectedInstance.settings.elements;
}
var options = null;
if (type == 'media') {
// when mediaw button clicked