+++ /dev/null
-/*\r
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
- *\r
- * == BEGIN LICENSE ==\r
- *\r
- * Licensed under the terms of any of the following licenses at your\r
- * choice:\r
- *\r
- * - GNU General Public License Version 2 or later (the "GPL")\r
- * http://www.gnu.org/licenses/gpl.html\r
- *\r
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
- * http://www.gnu.org/licenses/lgpl.html\r
- *\r
- * - Mozilla Public License Version 1.1 or later (the "MPL")\r
- * http://www.mozilla.org/MPL/MPL-1.1.html\r
- *\r
- * == END LICENSE ==\r
- *\r
- * FCKPlugin Class: Represents a single plugin.\r
- */\r
-\r
-var FCKPlugin = function( name, availableLangs, basePath )\r
-{\r
- this.Name = name ;\r
- this.BasePath = basePath ? basePath : FCKConfig.PluginsPath ;\r
- this.Path = this.BasePath + name + '/' ;\r
-\r
- if ( !availableLangs || availableLangs.length == 0 )\r
- this.AvailableLangs = new Array() ;\r
- else\r
- this.AvailableLangs = availableLangs.split(',') ;\r
-}\r
-\r
-FCKPlugin.prototype.Load = function()\r
-{\r
- // Load the language file, if defined.\r
- if ( this.AvailableLangs.length > 0 )\r
- {\r
- var sLang ;\r
-\r
- // Check if the plugin has the language file for the active language.\r
- if ( this.AvailableLangs.IndexOf( FCKLanguageManager.ActiveLanguage.Code ) >= 0 )\r
- sLang = FCKLanguageManager.ActiveLanguage.Code ;\r
- else\r
- // Load the default language file (first one) if the current one is not available.\r
- sLang = this.AvailableLangs[0] ;\r
-\r
- // Add the main plugin script.\r
- LoadScript( this.Path + 'lang/' + sLang + '.js' ) ;\r
- }\r
-\r
- // Add the main plugin script.\r
- LoadScript( this.Path + 'fckplugin.js' ) ;\r
-}\r