走近FCKeditor 2.6.x之核心js文件

核心js文件位于editor/js/目录下,该目录有3个js文件,对应于两种类型的浏览器,也可以说是3种吧,air我觉得它还是运行在特定的环境中.说它是是因为它的运行环境是取自safari的内核.这些js文件是fckeditor运行的核心,文件经过了压缩,不要忘记fckeditor是开源的!所以在发行包中都有源代码,也就是文件的未压缩版本,在editor/_source/文件夹中,原始代码经过了分割,按功能放在不同的文件夹中.我们从fckeditorcode_gecko.js(for Gecko Browsers)至上而下来看:

 

1.Defines some constants used by the editor.
These constants are also globally available in the page where the editor is placed.
editor/_source/fckconstants.js

 

2. Extensions to the JavaScript Core.
All custom extensions functions are PascalCased to differ from the standard camelCased ones.
editor/_source/fckjscoreextensions.js
 
3.Contains browser detection information.
editor/_source/internals/fckbrowserinfo.js
 
4.Defines the FCKURLParams object that is used to get all parameters passed by the URL QueryString (after the "?").
editor/_source/internals/fckurlparams.js
 
5.FCKEvents Class: used to handle events is a advanced way.
editor/_source/classes/fckevents.js

 

6.The Data Processor is responsible for transforming the input and output data
editor/_source/classes/fckdataprocessor.js

 

7.FCK represents the active editor instance
Creation and initialization of the "FCK" object. This is the main object that represents an editor instance.
editor/_source/internals/fck.js

 

8. Creation and initialization of the "FCK" object. This is the main
 object that represents an editor instance. (Gecko specific implementations) / (IE specific implementations)
editor/_source/internals/fck_gecko.js(Gecko specific implementations)  /  fck_ie.js(IE specific implementations)

 

9.Creates and initializes the FCKConfig object.
editor/_source/internals/fckconfig.js  (IE6中提示没有权限问题来源于此)

 

10.Debug window control and operations (empty for the compressed files - #2043).  #2043是一个BUG单号,可以访问dev.fckeditor.net/trict
editor/_source/internals/fckdebug_empty.js

 

11.Utility functions to work with the DOM.
editor/_source/internals/fckdomtools.js

 

12.Utility functions.
editor/_source/internals/fcktools.js

12.1.Utility functions. (Gecko version) / (IE version).
editor/_source/internals/fcktools_gecko.js(fcktools_ie.js)

 

13.Create the FCKeditorAPI object that is available as a global object in the page where the editor is placed in.
editor/_source/fckeditorapi.js

 

14.Preload a list of images, firing an event when complete.
editor/_source/classes/fckimagepreloader.js

 

15.These are some Regular Expressions used by the editor.
editor/_source/internals/fckregexlib.js

 

16.Library of keys collections.
editor/_source/internals/fcklistslib.js

 

17.Defines the FCKLanguageManager object that is used for language operations.
editor/_source/internals/fcklanguagemanager.js

 

18.This file define the HTML entities handled by the editor.
editor/_source/internals/fckxhtmlentities.js

 

19.Defines the FCKXHtml object, responsible for the XHTML operations.
editor/_source/internals/fckxhtml.js

 

20.Defines the FCKXHtml object, responsible for the XHTML operations.(Gecko specific.) / (IE specific.)
editor/_source/internals/fckxhtml_gecko.js(fckxhtml_ie.js)

 

21.Format the HTML.
editor/_source/internals/fckcodeformatter.js

 

22.
editor/_source/internals/fckundo.js

 

23.FCKEditingArea Class: renders an editable area.
editor/_source/classes/fckeditingarea.js

 

24.Control keyboard keystroke combinations.
editor/_source/classes/fckkeystrokehandler.js

 

25.Contains the DTD mapping for XHTML 1.0 Transitional.
editor/dtd/fck_xhtml10transitional.js(现在看到的是Version:2.6.4;在dtd文件夹中还有:fck_xhtml10strict.js)

 

26.FCKStyle Class: contains a style definition, and all methods to work with the style in a document.
editor/_source/classes/fckstyle.js

 

27.Handles styles in a give document.
editor/_source/internals/fckstyles.js

 

28.Tool object to manage HTML lists items (UL, OL and LI).
editor/_source/internals/fcklisthandler.js

 

29. Manages the DOM ascensors element list of a specific DOM node (limited to body, inclusive).
editor/_source/classes/fckelementpath.js

 

30.Class for working with a selection range, much like the W3C DOM Range, but it is not intended to be an implementation of the W3C interface.
editor/_source/classes/fckdomrange.js

 

30.1. (Gecko Implementation /  IE Implementation)
editor/_source/classes/fckdomrange_gecko.js(fckdomrange_ie.js)

 

30.2.During interation, the provided range can become invalid, due to document mutations, so CreateBookmark() used to restore it after processing, if needed.
editor/_source/classes/fckdomrangeiterator.js

(未完待续...)

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值