Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1075 ddelon 1
/*
2
 * FCKeditor - The text editor for internet
3
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 *
5
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 *
8
 * For further information visit:
9
 * 		http://www.fckeditor.net/
10
 *
11
 * "Support Open Source software. What about a donation today?"
12
 *
13
 * File Name: fckplugins.js
14
 * 	Defines the FCKPlugins object that is responsible for loading the Plugins.
15
 *
16
 * File Authors:
17
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
18
 */
19
 
20
var FCKPlugins = FCK.Plugins = new Object() ;
21
FCKPlugins.ItemsCount = 0 ;
22
FCKPlugins.Items = new Object() ;
23
 
24
FCKPlugins.Load = function()
25
{
26
	var oItems = FCKPlugins.Items ;
27
 
28
	// build the plugins collection.
29
	for ( var i = 0 ; i < FCKConfig.Plugins.Items.length ; i++ )
30
	{
31
		var oItem = FCKConfig.Plugins.Items[i] ;
32
		var oPlugin = oItems[ oItem[0] ] = new FCKPlugin( oItem[0], oItem[1], oItem[2] ) ;
33
		FCKPlugins.ItemsCount++ ;
34
	}
35
 
36
	// Load all items in the plugins collection.
37
	for ( var s in oItems )
38
		oItems[s].Load() ;
39
 
40
	// This is a self destroyable function (must be called once).
41
	FCKPlugins.Load = null ;
42
}