*/\r
( function()\r
{\r
- /**\r
+ /*\r
* Adds (additional) arguments to given url.\r
*\r
* @param {String}\r
return url + ( ( url.indexOf( "?" ) != -1 ) ? "&" : "?" ) + queryString.join( "&" );\r
}\r
\r
- /**\r
+ /*\r
* Make a string's first character uppercase.\r
*\r
* @param {String}\r
return f + str.substr( 1 );\r
}\r
\r
- /**\r
+ /*\r
* The onlick function assigned to the 'Browse Server' button. Opens the\r
* file browser and updates target field when file is selected.\r
*\r
editor.popup( url, width, height, editor.config.fileBrowserWindowFeatures );\r
}\r
\r
- /**\r
+ /*\r
* The onlick function assigned to the 'Upload' button. Makes the final\r
* decision whether form is really submitted and updates target field when\r
* file is uploaded.\r
return true;\r
}\r
\r
- /**\r
+ /*\r
* Setups the file element.\r
*\r
* @param {CKEDITOR.ui.dialog.file}\r
fileInput.filebrowser = filebrowser;\r
}\r
\r
- /**\r
+ /*\r
* Traverse through the content definition and attach filebrowser to\r
* elements with 'filebrowser' attribute.\r
*\r
* @param String\r
* dialogName Dialog name.\r
- * @param {CKEDITOR.dialog.dialogDefinitionObject}\r
+ * @param {CKEDITOR.dialog.definitionObject}\r
* definition Dialog definition.\r
* @param {Array}\r
- * elements Array of {@link CKEDITOR.dialog.contentDefinition}\r
+ * elements Array of {@link CKEDITOR.dialog.definition.content}\r
* objects.\r
*/\r
function attachFileBrowser( editor, dialogName, definition, elements )\r
}\r
}\r
\r
- /**\r
+ /*\r
* Updates the target element with the url of uploaded/selected file.\r
*\r
* @param {String}\r
}\r
}\r
\r
- /**\r
+ /*\r
* Returns true if filebrowser is configured in one of the elements.\r
*\r
- * @param {CKEDITOR.dialog.dialogDefinitionObject}\r
+ * @param {CKEDITOR.dialog.definitionObject}\r
* definition Dialog definition.\r
* @param String\r
* tabId The tab id where element(s) can be found.\r
* @example\r
* config.filebrowserWindowFeatures = 'resizable=yes,scrollbars=no';\r
*/\r
+\r
+/**\r
+ * The width of the file browser popup window. It can be a number or a percent string.\r
+ * @name CKEDITOR.config.filebrowserWindowWidth\r
+ * @type Number|String\r
+ * @default '80%'\r
+ * @example\r
+ * config.filebrowserWindowWidth = 750;\r
+ * @example\r
+ * config.filebrowserWindowWidth = '50%';\r
+ */\r
+\r
+/**\r
+ * The height of the file browser popup window. It can be a number or a percent string.\r
+ * @name CKEDITOR.config.filebrowserWindowHeight\r
+ * @type Number|String\r
+ * @default '70%'\r
+ * @example\r
+ * config.filebrowserWindowHeight = 580;\r
+ * @example\r
+ * config.filebrowserWindowHeight = '50%';\r
+ */\r