MDL-24416, fixed the problem of using file picker in tinymce fullscreen mode
authorDongsheng Cai <unoter@gmail.com>
Wed, 29 Sep 2010 08:03:52 +0000 (08:03 +0000)
committerDongsheng Cai <unoter@gmail.com>
Wed, 29 Sep 2010 08:03:52 +0000 (08:03 +0000)
lib/editor/tinymce/module.js

index 9e73fbf..7db0198 100644 (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