CLICK HERE TO BUY IT TODAY! OR GET IT FREE VIA TRIALPAY  

PHP Demo Application - Source Code

/Framework/Model/Vendor/CkEditor/_source/core/plugins.js



/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
 * @fileOverview Defines the {@link CKEDITOR.plugins} object, which is used to
 *        manage plugins registration and loading.
 */
/**
 * Manages plugins registration and loading.
 * @namespace
 * @augments CKEDITOR.resourceManager
 * @example
 */
CKEDITOR.plugins = new CKEDITOR.resourceManager(
    '_source/' +    // @Packager.RemoveLine
    'plugins/''plugin' );
// PACKAGER_RENAME( CKEDITOR.plugins )
CKEDITOR.plugins.load CKEDITOR.tools.overrideCKEDITOR.plugins.load, function( originalLoad )
    {
	        return function( namecallbackscope )
	        {
		            var allPlugins {};
		            var loadPlugins = function( names )
		            {
			                originalLoad.callthisnames, function( plugins )
			                    {
				                        CKEDITOR.tools.extendallPluginsplugins );
				                        var requiredPlugins [];
				                        for ( var pluginName in plugins )
				                        {
					                            var plugin pluginspluginName ],
					                                requires plugin && plugin.requires;
					                            if ( requires )
					                            {
						                                for ( var ;
						 requires.length ;
						 i++ )
						                                {
							                                    if ( !allPluginsrequires] ] )
							                                        requiredPlugins.pushrequires] );
							                                }
						                            }
					                        }
				                        if ( requiredPlugins.length )
				                            loadPlugins.callthisrequiredPlugins );
				                        else
				                        {
					                            // Call the "onLoad" function for all plugins.
					                            for ( pluginName in allPlugins )
					                            {
						                                plugin allPluginspluginName ];
						                                if ( plugin.onLoad && !plugin.onLoad._called )
						                                {
							                                    plugin.onLoad();
							                                    plugin.onLoad._called 1;
							                                }
						                            }
					                            // Call the callback.
					                            if ( callback )
					                                callback.callscope || windowallPlugins );
					                        }
				                    }
			                    , this);
			            };
		            loadPlugins.callthisname );
		        };
	    });
CKEDITOR.plugins.setLang = function( pluginNamelanguageCodelanguageEntries )
{
	    var plugin this.getpluginName ),
	        pluginLang plugin.lang || ( plugin.lang {} );
	    pluginLanglanguageCode ] = languageEntries;
	};





PHP Demo Source Code Index