您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->科信客户关系管理系统源码>>fckeditor/editor/fckeditor.html>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:科信客户关系管理系统源码


当前文件路径: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 41function LoadScript( url ) 42{ 43 document.write( '<script type="text/javascript" src="' + url + '" onerror="alert(\'Error loading \' + this.src);"><\/script>' ) ; 44} 45 46function 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. 52var sSuffix = /msie/.test( navigator.userAgent.toLowerCase() ) ? 'ie' : 'gecko' ; 53 54LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ; 55 56// Base configuration file. 57LoadScript( '../fckconfig.js' ) ; 58 59 </script> 60 <script type="text/javascript"> 61 62if ( 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. 83FCKConfig.ProcessHiddenField() ; 84 85// Load the custom configurations file (if defined). 86if ( FCKConfig.CustomConfigurationsPath.length > 0 ) 87 LoadScript( FCKConfig.CustomConfigurationsPath ) ; 88 89 </script> 90 <script type="text/javascript"> 91 92// Load configurations defined at page level. 93FCKConfig_LoadPageConfig() ; 94 95FCKConfig_PreProcess() ; 96 97// Load the active skin CSS. 98LoadCss( FCKConfig.SkinPath + 'fck_editor.css' ) ; 99 100// Load the language file. 101FCKLanguageManager.Initialize() ; 102LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ; 103 104 </script> 105 <script type="text/javascript"> 106 107// Initialize the editing area context menu. 108FCK_ContextMenu_Init() ; 109 110FCKPlugins.Load() ; 111 112 </script> 113 <script type="text/javascript"> 114 115// Set the editor interface direction. 116window.document.dir = FCKLang.Dir ; 117 118// Activate pasting operations. 119if ( FCKConfig.ForcePasteAsPlainText || FCKConfig.AutoDetectPasteFromWord ) 120 FCK.Events.AttachEvent( 'OnPaste', FCK.Paste ) ; 121 122 </script> 123 <script type="text/javascript"> 124 125window.onload = function() 126{ 127 InitializeAPI() ; 128 129 if ( FCKBrowserInfo.IsIE ) 130 FCK_PreloadImages() ; 131 else 132 LoadToolbarSetup() ; 133} 134 135function LoadToolbarSetup() 136{ 137 FCKeditorAPI._FunctionQueue.Add( LoadToolbar ) ; 138} 139 140function 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 153function 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 166function 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. 186if ( 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
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:科信客户关系管理系统源码

- 红水晶开源企业网站V3.11前台..

- Asp.net通用人力资源管理系统..

- ASP.NET经典案例源码之入门源码

- 口凡网编辑器1.0源码及Demo

- Asp.net简单网络选课系统源码

- 入门级留言本源码

- 简单多功能投票/调查系统源码

- 无限级树形(三层开发)源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号