JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.1
[ckeditor.git] / _source / plugins / filebrowser / plugin.js
index de764f1..176ce05 100644 (file)
@@ -174,7 +174,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        params.langCode = editor.langCode;\r
 \r
                var url = addQueryString( this.filebrowser.url, params );\r
-               editor.popup( url, width, height );\r
+               editor.popup( url, width, height, editor.config.fileBrowserWindowFeatures );\r
        }\r
 \r
        /**\r
@@ -388,11 +388,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                // Associate filebrowser to elements with 'filebrowser' attribute.\r
                for ( var i in definition.contents )\r
                {\r
-                       element = definition.contents[ i ] ;\r
-                       attachFileBrowser( evt.editor, evt.data.name, definition, element.elements );\r
-                       if ( element.hidden && element.filebrowser )\r
+                       if ( ( element = definition.contents[ i ] ) )\r
                        {\r
-                               element.hidden = !isConfigured( definition, element[ 'id' ], element.filebrowser );\r
+                               attachFileBrowser( evt.editor, evt.data.name, definition, element.elements );\r
+                               if ( element.hidden && element.filebrowser )\r
+                               {\r
+                                       element.hidden = !isConfigured( definition, element[ 'id' ], element.filebrowser );\r
+                               }\r
                        }\r
                }\r
        } );\r
@@ -477,3 +479,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
  * @example\r
  * config.filebrowserImageBrowseLinkUrl = '/browser/browse.php';\r
  */\r
+\r
+/**\r
+ * The "features" to use in the file browser popup window.\r
+ * @name CKEDITOR.config.filebrowserWindowFeatures\r
+ * @since 3.4.1\r
+ * @type String\r
+ * @default 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes'\r
+ * @example\r
+ * config.filebrowserWindowFeatures = 'resizable=yes,scrollbars=no';\r
+ */\r