var external = this.externals[ name ];\r
return CKEDITOR.getUrl(\r
this.getPath( name ) +\r
- ( ( external && external.file ) || ( this.fileName + '.js' ) ) );\r
+ ( ( external && ( typeof external.file == 'string' ) ) ? external.file : this.fileName + '.js' ) );\r
},\r
\r
/**\r
* @param {String} names The resource names, separated by commas.\r
* @param {String} path The path of the folder containing the resource.\r
* @param {String} [fileName] The resource file name. If not provided, the\r
- * default name is used.\r
+ * default name is used; If provided with a empty string, will implicitly indicates that {@param path}\r
+ * is already the full path.\r
* @example\r
* // Loads a plugin from '/myplugin/samples/plugin.js'.\r
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/' );\r
* @example\r
* // Loads a plugin from '/myplugin/samples/my_plugin.js'.\r
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/', 'my_plugin.js' );\r
+ * @example\r
+ * // Loads a plugin from '/myplugin/samples/my_plugin.js'.\r
+ * CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/my_plugin.js', '' );\r
*/\r
addExternal : function( names, path, fileName )\r
{\r