温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:科信客户关系管理系统源码
当前文件路径:KeXinCrm/fckeditor/editor/fckeditor.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-2007 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
* File Name: fckeditor.html 23
* Main page that holds the editor. 24
* 25
* File Authors: 26
* Frederico Caldeira Knabben (www.fckeditor.net) 27
--> 28
<html xmlns="http://www.w3.org/1999/xhtml"> 29
<head> 30
<title>FCKeditor</title> 31
<meta name="robots" content="noindex, nofollow" /> 32
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 33
<meta http-equiv="Cache-Control" content="public" /> 34
<script type="text/javascript"> 35
36
// Instead of loading scripts and CSSs using inline tags, all scripts are 37
// loaded by code. In this way we can guarantee the correct processing order, 38
// otherwise external scripts and inline scripts could be executed in an 39
// unwanted order (IE). 40
41
function LoadScript( url ) 42
{ 43
document.write( '<script type="text/javascript" src="' + url + '" onerror="alert(\'Error loading \' + this.src);"><\/script>' ) ; 44
} 45
46
function LoadCss( url ) 47
{ 48
document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" onerror="alert(\'Error loading \' + this.src);" />' ) ; 49
} 50
51
// Main editor scripts. 52
var sSuffix = /msie/.test( navigator.userAgent.toLowerCase() ) ? 'ie' : 'gecko' ; 53
54
LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ; 55
56
// Base configuration file. 57
LoadScript( '../fckconfig.js' ) ; 58
59
</script> 60
<script type="text/javascript"> 61
62
if ( FCKBrowserInfo.IsIE ) 63
{ 64
// Remove IE mouse flickering. 65
try 66
{ 67
document.execCommand( 'BackgroundImageCache', false, true ) ; 68
} 69
catch (e) 70
{ 71
// We have been reported about loading problems caused by the above 72
// line. For safety, let's just ignore errors. 73
} 74
75
// Create the default cleanup object used by the editor. 76
FCK.IECleanup = new FCKIECleanup( window ) ; 77
FCK.IECleanup.AddItem( FCKTempBin, FCKTempBin.Reset ) ; 78
FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ; 79
} 80
81
// The config hidden field is processed immediately, because 82
// CustomConfigurationsPath may be set in the page. 83
FCKConfig.ProcessHiddenField() ; 84
85
// Load the custom configurations file (if defined). 86
if ( FCKConfig.CustomConfigurationsPath.length > 0 ) 87
LoadScript( FCKConfig.CustomConfigurationsPath ) ; 88
89
</script> 90
<script type="text/javascript"> 91
92
// Load configurations defined at page level. 93
FCKConfig_LoadPageConfig() ; 94
95
FCKConfig_PreProcess() ; 96
97
// Load the active skin CSS. 98
LoadCss( FCKConfig.SkinPath + 'fck_editor.css' ) ; 99
100
// Load the language file. 101
FCKLanguageManager.Initialize() ; 102
LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ; 103
104
</script> 105
<script type="text/javascript"> 106
107
// Initialize the editing area context menu. 108
FCK_ContextMenu_Init() ; 109
110
FCKPlugins.Load() ; 111
112
</script> 113
<script type="text/javascript"> 114
115
// Set the editor interface direction. 116
window.document.dir = FCKLang.Dir ; 117
118
// Activate pasting operations. 119
if ( FCKConfig.ForcePasteAsPlainText || FCKConfig.AutoDetectPasteFromWord ) 120
FCK.Events.AttachEvent( 'OnPaste', FCK.Paste ) ; 121
122
</script> 123
<script type="text/javascript"> 124
125
window.onload = function() 126
{ 127
InitializeAPI() ; 128
129
if ( FCKBrowserInfo.IsIE ) 130
FCK_PreloadImages() ; 131
else 132
LoadToolbarSetup() ; 133
} 134
135
function LoadToolbarSetup() 136
{ 137
FCKeditorAPI._FunctionQueue.Add( LoadToolbar ) ; 138
} 139
140
function LoadToolbar() 141
{ 142
var oToolbarSet = FCK.ToolbarSet = FCKToolbarSet_Create() ; 143
144
if ( oToolbarSet.IsLoaded ) 145
StartEditor() ; 146
else 147
{ 148
oToolbarSet.OnLoad = StartEditor ; 149
oToolbarSet.Load( FCKURLParams['Toolbar'] || 'Default' ) ; 150
} 151
} 152
153
function StartEditor() 154
{ 155
// Remove the onload listener. 156
FCK.ToolbarSet.OnLoad = null ; 157
158
FCKeditorAPI._FunctionQueue.Remove( LoadToolbar ) ; 159
160
FCK.Events.AttachEvent( 'OnStatusChange', WaitForActive ) ; 161
162
// Start the editor. 163
FCK.StartEditor() ; 164
} 165
166
function WaitForActive( editorInstance, newStatus ) 167
{ 168
if ( newStatus == FCK_STATUS_ACTIVE ) 169
{ 170
if ( FCKBrowserInfo.IsGecko ) 171
FCKTools.RunFunction( window.onresize ) ; 172
173
_AttachFormSubmitToAPI() ; 174
175
FCK.SetStatus( FCK_STATUS_COMPLETE ) ; 176
177
// Call the special "FCKeditor_OnComplete" function that should be present in 178
// the HTML page where the editor is located. 179
if ( typeof( window.parent.FCKeditor_OnComplete ) == 'function' ) 180
window.parent.FCKeditor_OnComplete( FCK ) ; 181
} 182
} 183
184
// Gecko browsers doens't calculate well that IFRAME size so we must 185
// recalculate it every time the window size changes. 186
if ( FCKBrowserInfo.IsGecko ) 187
{ 188
function Window_OnResize() 189
{ 190
if ( FCKBrowserInfo.IsOpera ) 191
return ; 192
193
var oCell = document.getElementById( 'xEditingArea' ) ; 194
195
var eInnerElement = oCell.firstChild ; 196
if ( eInnerElement ) 197
{ 198
eInnerElement.style.height = 0 ; 199
eInnerElement.style.height = oCell.scrollHeight - 2 ; 200
} 201
} 202
window.onresize = Window_OnResize ; 203
} 204
205
</script> 206
</head> 207
<body> 208
<table width="100%" cellpadding="0" cellspacing="0" style="height: 100%; table-layout: fixed"> 209
<tr id="xToolbarRow" style="display: none"> 210
<td id="xToolbarSpace" style="overflow: hidden"> 211
<table width="100%" cellpadding="0" cellspacing="0"> 212
<tr id="xCollapsed" style="display: none"> 213
<td id="xExpandHandle" class="TB_Expand" colspan="3"> 214
<img class="TB_ExpandImg" alt="" src="images/spacer.gif" width="8" height="4" /></td> 215
</tr> 216
<tr id="xExpanded" style="display: none"> 217
<td id="xTBLeftBorder" class="TB_SideBorder" style="width: 1px; display: none;"></td> 218
<td id="xCollapseHandle" style="display: none" class="TB_Collapse" valign="bottom"> 219
<img class="TB_CollapseImg" alt="" src="images/spacer.gif" width="8" height="4" /></td> 220
<td id="xToolbar" class="TB_ToolbarSet"></td> 221
<td class="TB_SideBorder" style="width: 1px"></td> 222
</tr> 223
</table> 224
</td> 225
</tr> 226
<tr> 227
<td id="xEditingArea" valign="top" style="height: 100%"></td> 228
</tr> 229
</table> 230
</body> 231
</html> 232





}
