⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fck_events.js

📁 内容管理 内容管理 内容管理 内容管理 内容管理
💻 JS
字号:
/*
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003 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 go to http://www.fredck.com/FCKeditor/ 
 * or contact fckeditor@fredck.com.
 *
 * fck_events.js: Creates the events object that handles the editor
 * changes events for the toolbar.
 *
 * Authors:
 *   Frederico Caldeira Knabben (fckeditor@fredck.com)
 */

var events = new Object() ;

events.attachEvent = function(eventName, attachedFunction)
{
	if (! events["ev" + eventName]) 
		events["ev" + eventName] = new Array() ;
	
	events["ev" + eventName][events["ev" + eventName].length] = attachedFunction ;
}

events.fireEvent = function(eventName, params)
{
	var oEvents = events["ev" + eventName] ;
	
	if (oEvents) 
	{
		for (i in oEvents)
		{
			if (typeof(oEvents[i]) == "function")
				oEvents[i](params) ;
			else
				oEvents[i][eventName](params) ;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -