PHPChina资讯:核心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 java script 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
以上部分都是相同的,也就是说这些内容在fckeditorcode_ie.js中是一模一样的(未完待续...)