温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:博客源代码(课程设计,3层架构)
当前文件:
MVCBlog/fckeditor/editor/fckeditor.original.html,打开代码结构图
MVCBlog/fckeditor/editor/fckeditor.original.html,打开代码结构图1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2
<!-- 3
* FCKeditor - The text editor for Internet - http://www.fckeditor.net 4
* Copyright (C) 2003-2008 Frederico Caldeira Knabben 5
* 6
* == BEGIN LICENSE == 7
* 8
* Licensed under the terms of any of the following licenses at your 9
* choice: 10
* 11
* - GNU General Public License Version 2 or later (the "GPL") 12
* http://www.gnu.org/licenses/gpl.html 13
* 14
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 15
* http://www.gnu.org/licenses/lgpl.html 16
* 17
* - Mozilla Public License Version 1.1 or later (the "MPL") 18
* http://www.mozilla.org/MPL/MPL-1.1.html 19
* 20
* == END LICENSE == 21
* 22
* Main page that holds the editor. 23
--> 24
<html> 25
<head> 26
<title>FCKeditor</title> 27
<meta name="robots" content="noindex, nofollow"> 28
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 29
<!-- @Packager.RemoveLine 30
<meta http-equiv="Cache-Control" content="public"> 31
@Packager.RemoveLine --> 32
<script type="text/javascript"> 33
34
// Save a reference to the default domain. 35
var FCK_ORIGINAL_DOMAIN ; 36
37
// Automatically detect the correct document.domain (#123). 38
(function() 39
{ 40
var d = FCK_ORIGINAL_DOMAIN = document.domain ; 41
42
while ( true ) 43
{ 44
// Test if we can access a parent property. 45
try 46
{ 47
var test = window.parent.document.domain ; 48
break ; 49
} 50
catch( e ) {} 51
52
// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... 53
d = d.replace( /.*?(?:\.|$)/, '' ) ; 54
55
if ( d.length == 0 ) 56
break ; // It was not able to detect the domain. 57
58
try 59
{ 60
document.domain = d ; 61
} 62
catch (e) 63
{ 64
break ; 65
} 66
} 67
})() ; 68
69
// Save a reference to the detected runtime domain. 70
var FCK_RUNTIME_DOMAIN = document.domain ; 71
72
var FCK_IS_CUSTOM_DOMAIN = ( FCK_ORIGINAL_DOMAIN != FCK_RUNTIME_DOMAIN ) ; 73
74
// Instead of loading scripts and CSSs using inline tags, all scripts are 75
// loaded by code. In this way we can guarantee the correct processing order, 76
// otherwise external scripts and inline scripts could be executed in an 77
// unwanted order (IE). 78
79
function LoadScript( url ) 80
{ 81
document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ; 82
} 83
84
// Main editor scripts. 85
var sSuffix = ( /*@cc_on!@*/false ) ? 'ie' : 'gecko' ; 86
87
/* @Packager.RemoveLine 88
LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ; 89
@Packager.RemoveLine */ 90
// @Packager.Remove.Start 91
92
LoadScript( '_source/fckconstants.js' ) ; 93
LoadScript( '_source/fckjscoreextensions.js' ) ; 94
95
if ( sSuffix == 'ie' ) 96
LoadScript( '_source/classes/fckiecleanup.js' ) ; 97
98
LoadScript( '_source/internals/fckbrowserinfo.js' ) ; 99
LoadScript( '_source/internals/fckurlparams.js' ) ; 100
LoadScript( '_source/classes/fckevents.js' ) ; 101
LoadScript( '_source/classes/fckdataprocessor.js' ) ; 102
LoadScript( '_source/internals/fck.js' ) ; 103
LoadScript( '_source/internals/fck_' + sSuffix + '.js' ) ; 104
LoadScript( '_source/internals/fckconfig.js' ) ; 105
106
LoadScript( '_source/internals/fckdebug.js' ) ; 107
LoadScript( '_source/internals/fckdomtools.js' ) ; 108
LoadScript( '_source/internals/fcktools.js' ) ; 109
LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ; 110
LoadScript( '_source/fckeditorapi.js' ) ; 111
LoadScript( '_source/classes/fckimagepreloader.js' ) ; 112
LoadScript( '_source/internals/fckregexlib.js' ) ; 113
LoadScript( '_source/internals/fcklistslib.js' ) ; 114
LoadScript( '_source/internals/fcklanguagemanager.js' ) ; 115
LoadScript( '_source/internals/fckxhtmlentities.js' ) ; 116
LoadScript( '_source/internals/fckxhtml.js' ) ; 117
LoadScript( '_source/internals/fckxhtml_' + sSuffix + '.js' ) ; 118
LoadScript( '_source/internals/fckcodeformatter.js' ) ; 119
LoadScript( '_source/internals/fckundo.js' ) ; 120
LoadScript( '_source/classes/fckeditingarea.js' ) ; 121
LoadScript( '_source/classes/fckkeystrokehandler.js' ) ; 122
123
LoadScript( 'dtd/fck_xhtml10transitional.js' ) ; 124
LoadScript( '_source/classes/fckstyle.js' ) ; 125
LoadScript( '_source/internals/fckstyles.js' ) ; 126
127
LoadScript( '_source/internals/fcklisthandler.js' ) ; 128
LoadScript( '_source/classes/fckelementpath.js' ) ; 129
LoadScript( '_source/classes/fckdomrange.js' ) ; 130
LoadScript( '_source/classes/fckdocumentfragment_' + sSuffix + '.js' ) ; 131
LoadScript( '_source/classes/fckw3crange.js' ) ; 132
LoadScript( '_source/classes/fckdomrange_' + sSuffix + '.js' ) ; 133
LoadScript( '_source/classes/fckdomrangeiterator.js' ) ; 134
LoadScript( '_source/classes/fckenterkey.js' ) ; 135
136
LoadScript( '_source/internals/fckdocumentprocessor.js' ) ; 137
LoadScript( '_source/internals/fckselection.js' ) ; 138
LoadScript( '_source/internals/fckselection_' + sSuffix + '.js' ) ; 139
140
LoadScript( '_source/internals/fcktablehandler.js' ) ; 141
LoadScript( '_source/internals/fcktablehandler_' + sSuffix + '.js' ) ; 142
LoadScript( '_source/classes/fckxml.js' ) ; 143
LoadScript( '_source/classes/fckxml_' + sSuffix + '.js' ) ; 144
145
LoadScript( '_source/commandclasses/fcknamedcommand.js' ) ; 146
LoadScript( '_source/commandclasses/fckstylecommand.js' ) ; 147
LoadScript( '_source/commandclasses/fck_othercommands.js' ) ; 148
LoadScript( '_source/commandclasses/fckshowblocks.js' ) ; 149
LoadScript( '_source/commandclasses/fckspellcheckcommand_' + sSuffix + '.js' ) ; 150
LoadScript( '_source/commandclasses/fcktextcolorcommand.js' ) ; 151
LoadScript( '_source/commandclasses/fckpasteplaintextcommand.js' ) ; 152
LoadScript( '_source/commandclasses/fckpastewordcommand.js' ) ; 153
LoadScript( '_source/commandclasses/fcktablecommand.js' ) ; 154
LoadScript( '_source/commandclasses/fckfitwindow.js' ) ; 155
LoadScript( '_source/commandclasses/fcklistcommands.js' ) ; 156
LoadScript( '_source/commandclasses/fckjustifycommands.js' ) ; 157
LoadScript( '_source/commandclasses/fckindentcommands.js' ) ; 158
LoadScript( '_source/commandclasses/fckblockquotecommand.js' ) ; 159
LoadScript( '_source/commandclasses/fckcorestylecommand.js' ) ; 160
LoadScript( '_source/commandclasses/fckremoveformatcommand.js' ) ; 161
LoadScript( '_source/internals/fckcommands.js' ) ; 162
163
LoadScript( '_source/classes/fckpanel.js' ) ; 164
LoadScript( '_source/classes/fckicon.js' ) ; 165
LoadScript( '_source/classes/fcktoolbarbuttonui.js' ) ; 166
LoadScript( '_source/classes/fcktoolbarbutton.js' ) ; 167
LoadScript( '_source/classes/fckspecialcombo.js' ) ; 168
LoadScript( '_source/classes/fcktoolbarspecialcombo.js' ) ; 169
LoadScript( '_source/classes/fcktoolbarstylecombo.js' ) ; 170
LoadScript( '_source/classes/fcktoolbarfontformatcombo.js' ) ; 171
LoadScript( '_source/classes/fcktoolbarfontscombo.js' ) ; 172
LoadScript( '_source/classes/fcktoolbarfontsizecombo.js' ) ; 173
LoadScript( '_source/classes/fcktoolbarpanelbutton.js' ) ; 174
LoadScript( '_source/internals/fcktoolbaritems.js' ) ; 175
LoadScript( '_source/classes/fcktoolbar.js' ) ; 176
LoadScript( '_source/classes/fcktoolbarbreak_' + sSuffix + '.js' ) ; 177
LoadScript( '_source/internals/fcktoolbarset.js' ) ; 178
LoadScript( '_source/internals/fckdialog.js' ) ; 179
LoadScript( '_source/classes/fckmenuitem.js' ) ; 180
LoadScript( '_source/classes/fckmenublock.js' ) ; 181
LoadScript( '_source/classes/fckmenublockpanel.js' ) ; 182
LoadScript( '_source/classes/fckcontextmenu.js' ) ; 183
LoadScript( '_source/internals/fck_contextmenu.js' ) ; 184
LoadScript( '_source/classes/fckhtmliterator.js' ) ; 185
LoadScript( '_source/classes/fckplugin.js' ) ; 186
LoadScript( '_source/internals/fckplugins.js' ) ; 187
188
// @Packager.Remove.End 189
190
// Base configuration file. 191
LoadScript( '../fckconfig.js' ) ; 192
193
</script> 194
<script type="text/javascript"> 195
196
// Adobe AIR compatibility file. 197
if ( FCKBrowserInfo.IsAIR ) 198
LoadScript( 'js/fckadobeair.js' ) ; 199
200
if ( FCKBrowserInfo.IsIE ) 201
{ 202
// Remove IE mouse flickering. 203
try 204
{ 205
document.execCommand( 'BackgroundImageCache', false, true ) ; 206
} 207
catch (e) 208
{ 209
// We have been reported about loading problems caused by the above 210
// line. For safety, let's just ignore errors. 211
} 212
213
// Create the default cleanup object used by the editor. 214
FCK.IECleanup = new FCKIECleanup( window ) ; 215
FCK.IECleanup.AddItem( FCKTempBin, FCKTempBin.Reset ) ; 216
FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ; 217
} 218
219
// The first function to be called on selection change must the the styles 220
// change checker, because the result of its processing may be used by another 221
// functions listening to the same event. 222
FCK.Events.AttachEvent( 'OnSelectionChange', function() { FCKStyles.CheckSelectionChanges() ; } ) ; 223
224
// The config hidden field is processed immediately, because 225
// CustomConfigurationsPath may be set in the page. 226
FCKConfig.ProcessHiddenField() ; 227
228
// Load the custom configurations file (if defined). 229
if ( FCKConfig.CustomConfigurationsPath.length > 0 ) 230
LoadScript( FCKConfig.CustomConfigurationsPath ) ; 231
232
</script> 233
<script type="text/javascript"> 234
235
// Load configurations defined at page level. 236
FCKConfig_LoadPageConfig() ; 237
238
FCKConfig_PreProcess() ; 239
240
var FCK_InternalCSS = FCKConfig.FullBasePath + 'css/fck_internal.css' ; // @Packager.RemoveLine 241
var FCK_ShowTableBordersCSS = FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css' ; // @Packager.RemoveLine 242
/* @Packager.RemoveLine 243
// CSS minified by http://iceyboard.no-ip.org/projects/css_compressor 244
var FCK_InternalCSS = FCKTools.FixCssUrls( FCKConfig.FullBasePath + 'css/', 'html{min-height:100%}table.FCK__ShowTableBorders,table.FCK__ShowTableBorders td,table.FCK__ShowTableBorders th{border:#d3d3d3 1px solid}form{border:1px dotted #F00;padding:2px}.FCK__Flash{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_flashlogo.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__Anchor{border:1px dotted #00F;background-position:center center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;width:16px;height:15px;vertical-align:middle}.FCK__AnchorC{border:1px dotted #00F;background-position:1px center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}a[name]{border:1px dotted #00F;background-position:0 center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}.FCK__PageBreak{background-position:center center;background-image:url(images/fck_pagebreak.gif);background-repeat:no-repeat;clear:both;display:block;float:none;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;border-right:0;border-left:0;height:5px}.FCK__InputHidden{width:19px;height:18px;background-image:url(images/fck_hiddenfield.gif);background-repeat:no-repeat;vertical-align:text-bottom;background-position:center center}.FCK__ShowBlocks p,.FCK__ShowBlocks div,.FCK__ShowBlocks pre,.FCK__ShowBlocks address,.FCK__ShowBlocks blockquote,.FCK__ShowBlocks h1,.FCK__ShowBlocks h2,.FCK__ShowBlocks h3,.FCK__ShowBlocks h4,.FCK__ShowBlocks h5,.FCK__ShowBlocks h6{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px;padding-left:8px}.FCK__ShowBlocks p{background-image:url(images/block_p.png)}.FCK__ShowBlocks div{background-image:url(images/block_div.png)}.FCK__ShowBlocks pre{background-image:url(images/block_pre.png)}.FCK__ShowBlocks address{background-image:url(images/block_address.png)}.FCK__ShowBlocks blockquote{background-image:url(images/block_blockquote.png)}.FCK__ShowBlocks h1{background-image:url(images/block_h1.png)}.FCK__ShowBlocks h2{background-image:url(images/block_h2.png)}.FCK__ShowBlocks h3{background-image:url(images/block_h3.png)}.FCK__ShowBlocks h4{background-image:url(images/block_h4.png)}.FCK__ShowBlocks h5{background-image:url(images/block_h5.png)}.FCK__ShowBlocks h6{background-image:url(images/block_h6.png)}' ) ; 245
var FCK_ShowTableBordersCSS = FCKTools.FixCssUrls( FCKConfig.FullBasePath + 'css/', 'table:not([border]),table:not([border]) > tr > td,table:not([border]) > tr > th,table:not([border]) > tbody > tr > td,table:not([border]) > tbody > tr > th,table:not([border]) > thead > tr > td,table:not([border]) > thead > tr > th,table:not([border]) > tfoot > tr > td,table:not([border]) > tfoot > tr > th,table[border=\"0\"],table[border=\"0\"] > tr > td,table[border=\"0\"] > tr > th,table[border=\"0\"] > tbody > tr > td,table[border=\"0\"] > tbody > tr > th,table[border=\"0\"] > thead > tr > td,table[border=\"0\"] > thead > tr > th,table[border=\"0\"] > tfoot > tr > td,table[border=\"0\"] > tfoot > tr > th{border:#d3d3d3 1px dotted}' ) ; 246
@Packager.RemoveLine */ 247
248
// Popup the debug window if debug mode is set to true. It guarantees that the 249
// first debug message will not be lost. 250
if ( FCKConfig.Debug ) 251
FCKDebug._GetWindow() ; 252
253
// Load the active skin CSS. 254
document.write( FCKTools.GetStyleHtml( FCKConfig.SkinEditorCSS ) ) ; 255
256
// Load the language file. 257
FCKLanguageManager.Initialize() ; 258
LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ; 259
260
</script> 261
<scri





}