FCKeditor/editor/_source/fckeditorapi.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * 
 * "Support Open Source software. What about a donation today?"
 * 
 * File Name: fckeditorapi.js
 * 	Create the FCKeditorAPI object that is available as a global object in
 * 	the page where the editor is placed in.
 * 
 * File Authors:
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
 */

var FCKeditorAPI ;

function InitializeAPI()
{
	if ( !( FCKeditorAPI = window.parent.FCKeditorAPI ) )
	{
		// Make the FCKeditorAPI object available in the parent window. Use 
		// eval so it is independent from this window and so it will still be 
		// available if the editor instance is removed ("Can't execute code
		// from a freed script" error).
		var sScript = '\
			var FCKeditorAPI = {\
				Version			: \'2.3.1\',\
				VersionBuild	: \'1062\',\
				__Instances		: new Object(),\
				GetInstance		: function( instanceName )\
				{\
					return this.__Instances[ instanceName ] ;\
				},\
				_FunctionQueue	: {\
					Functions	: new Array(),\
					IsRunning	: false,\
					Add			: function( functionToAdd )\
					{\
						this.Functions.push( functionToAdd ) ;\
						if ( !this.IsRunning )\
							this.StartNext() ;\
					},\
					StartNext	: function()\
					{\
						var aQueue = this.Functions ;\
						if ( aQueue.length > 0 )\
						{\
							this.IsRunning = true ;\
							aQueue[0].call() ;\
						}\
						else\
							this.IsRunning = false ;\
					},\
					Remove		: function( func )\
后面还有 34 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。