您目前尚未登陆,请选择【登陆】或【注册
首页->博客论坛->博客源代码(课程设计,3层架构)>>fckeditor/editor/fckeditor.original.html>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:博客源代码(课程设计,3层架构)
当前文件:文件类型 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. 35var 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. 70var FCK_RUNTIME_DOMAIN = document.domain ; 71 72var 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 79function LoadScript( url ) 80{ 81 document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ; 82} 83 84// Main editor scripts. 85var sSuffix = ( /*@cc_on!@*/false ) ? 'ie' : 'gecko' ; 86 87/* @Packager.RemoveLine 88LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ; 89@Packager.RemoveLine */ 90// @Packager.Remove.Start 91 92LoadScript( '_source/fckconstants.js' ) ; 93LoadScript( '_source/fckjscoreextensions.js' ) ; 94 95if ( sSuffix == 'ie' ) 96 LoadScript( '_source/classes/fckiecleanup.js' ) ; 97 98LoadScript( '_source/internals/fckbrowserinfo.js' ) ; 99LoadScript( '_source/internals/fckurlparams.js' ) ; 100LoadScript( '_source/classes/fckevents.js' ) ; 101LoadScript( '_source/classes/fckdataprocessor.js' ) ; 102LoadScript( '_source/internals/fck.js' ) ; 103LoadScript( '_source/internals/fck_' + sSuffix + '.js' ) ; 104LoadScript( '_source/internals/fckconfig.js' ) ; 105 106LoadScript( '_source/internals/fckdebug.js' ) ; 107LoadScript( '_source/internals/fckdomtools.js' ) ; 108LoadScript( '_source/internals/fcktools.js' ) ; 109LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ; 110LoadScript( '_source/fckeditorapi.js' ) ; 111LoadScript( '_source/classes/fckimagepreloader.js' ) ; 112LoadScript( '_source/internals/fckregexlib.js' ) ; 113LoadScript( '_source/internals/fcklistslib.js' ) ; 114LoadScript( '_source/internals/fcklanguagemanager.js' ) ; 115LoadScript( '_source/internals/fckxhtmlentities.js' ) ; 116LoadScript( '_source/internals/fckxhtml.js' ) ; 117LoadScript( '_source/internals/fckxhtml_' + sSuffix + '.js' ) ; 118LoadScript( '_source/internals/fckcodeformatter.js' ) ; 119LoadScript( '_source/internals/fckundo.js' ) ; 120LoadScript( '_source/classes/fckeditingarea.js' ) ; 121LoadScript( '_source/classes/fckkeystrokehandler.js' ) ; 122 123LoadScript( 'dtd/fck_xhtml10transitional.js' ) ; 124LoadScript( '_source/classes/fckstyle.js' ) ; 125LoadScript( '_source/internals/fckstyles.js' ) ; 126 127LoadScript( '_source/internals/fcklisthandler.js' ) ; 128LoadScript( '_source/classes/fckelementpath.js' ) ; 129LoadScript( '_source/classes/fckdomrange.js' ) ; 130LoadScript( '_source/classes/fckdocumentfragment_' + sSuffix + '.js' ) ; 131LoadScript( '_source/classes/fckw3crange.js' ) ; 132LoadScript( '_source/classes/fckdomrange_' + sSuffix + '.js' ) ; 133LoadScript( '_source/classes/fckdomrangeiterator.js' ) ; 134LoadScript( '_source/classes/fckenterkey.js' ) ; 135 136LoadScript( '_source/internals/fckdocumentprocessor.js' ) ; 137LoadScript( '_source/internals/fckselection.js' ) ; 138LoadScript( '_source/internals/fckselection_' + sSuffix + '.js' ) ; 139 140LoadScript( '_source/internals/fcktablehandler.js' ) ; 141LoadScript( '_source/internals/fcktablehandler_' + sSuffix + '.js' ) ; 142LoadScript( '_source/classes/fckxml.js' ) ; 143LoadScript( '_source/classes/fckxml_' + sSuffix + '.js' ) ; 144 145LoadScript( '_source/commandclasses/fcknamedcommand.js' ) ; 146LoadScript( '_source/commandclasses/fckstylecommand.js' ) ; 147LoadScript( '_source/commandclasses/fck_othercommands.js' ) ; 148LoadScript( '_source/commandclasses/fckshowblocks.js' ) ; 149LoadScript( '_source/commandclasses/fckspellcheckcommand_' + sSuffix + '.js' ) ; 150LoadScript( '_source/commandclasses/fcktextcolorcommand.js' ) ; 151LoadScript( '_source/commandclasses/fckpasteplaintextcommand.js' ) ; 152LoadScript( '_source/commandclasses/fckpastewordcommand.js' ) ; 153LoadScript( '_source/commandclasses/fcktablecommand.js' ) ; 154LoadScript( '_source/commandclasses/fckfitwindow.js' ) ; 155LoadScript( '_source/commandclasses/fcklistcommands.js' ) ; 156LoadScript( '_source/commandclasses/fckjustifycommands.js' ) ; 157LoadScript( '_source/commandclasses/fckindentcommands.js' ) ; 158LoadScript( '_source/commandclasses/fckblockquotecommand.js' ) ; 159LoadScript( '_source/commandclasses/fckcorestylecommand.js' ) ; 160LoadScript( '_source/commandclasses/fckremoveformatcommand.js' ) ; 161LoadScript( '_source/internals/fckcommands.js' ) ; 162 163LoadScript( '_source/classes/fckpanel.js' ) ; 164LoadScript( '_source/classes/fckicon.js' ) ; 165LoadScript( '_source/classes/fcktoolbarbuttonui.js' ) ; 166LoadScript( '_source/classes/fcktoolbarbutton.js' ) ; 167LoadScript( '_source/classes/fckspecialcombo.js' ) ; 168LoadScript( '_source/classes/fcktoolbarspecialcombo.js' ) ; 169LoadScript( '_source/classes/fcktoolbarstylecombo.js' ) ; 170LoadScript( '_source/classes/fcktoolbarfontformatcombo.js' ) ; 171LoadScript( '_source/classes/fcktoolbarfontscombo.js' ) ; 172LoadScript( '_source/classes/fcktoolbarfontsizecombo.js' ) ; 173LoadScript( '_source/classes/fcktoolbarpanelbutton.js' ) ; 174LoadScript( '_source/internals/fcktoolbaritems.js' ) ; 175LoadScript( '_source/classes/fcktoolbar.js' ) ; 176LoadScript( '_source/classes/fcktoolbarbreak_' + sSuffix + '.js' ) ; 177LoadScript( '_source/internals/fcktoolbarset.js' ) ; 178LoadScript( '_source/internals/fckdialog.js' ) ; 179LoadScript( '_source/classes/fckmenuitem.js' ) ; 180LoadScript( '_source/classes/fckmenublock.js' ) ; 181LoadScript( '_source/classes/fckmenublockpanel.js' ) ; 182LoadScript( '_source/classes/fckcontextmenu.js' ) ; 183LoadScript( '_source/internals/fck_contextmenu.js' ) ; 184LoadScript( '_source/classes/fckhtmliterator.js' ) ; 185LoadScript( '_source/classes/fckplugin.js' ) ; 186LoadScript( '_source/internals/fckplugins.js' ) ; 187 188// @Packager.Remove.End 189 190// Base configuration file. 191LoadScript( '../fckconfig.js' ) ; 192 193 </script> 194 <script type="text/javascript"> 195 196// Adobe AIR compatibility file. 197if ( FCKBrowserInfo.IsAIR ) 198 LoadScript( 'js/fckadobeair.js' ) ; 199 200if ( 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. 222FCK.Events.AttachEvent( 'OnSelectionChange', function() { FCKStyles.CheckSelectionChanges() ; } ) ; 223 224// The config hidden field is processed immediately, because 225// CustomConfigurationsPath may be set in the page. 226FCKConfig.ProcessHiddenField() ; 227 228// Load the custom configurations file (if defined). 229if ( FCKConfig.CustomConfigurationsPath.length > 0 ) 230 LoadScript( FCKConfig.CustomConfigurationsPath ) ; 231 232 </script> 233 <script type="text/javascript"> 234 235// Load configurations defined at page level. 236FCKConfig_LoadPageConfig() ; 237 238FCKConfig_PreProcess() ; 239 240var FCK_InternalCSS = FCKConfig.FullBasePath + 'css/fck_internal.css' ; // @Packager.RemoveLine 241var 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 244var 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)}' ) ; 245var 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. 250if ( FCKConfig.Debug ) 251 FCKDebug._GetWindow() ; 252 253// Load the active skin CSS. 254document.write( FCKTools.GetStyleHtml( FCKConfig.SkinEditorCSS ) ) ; 255 256// Load the language file. 257FCKLanguageManager.Initialize() ; 258LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ; 259 260 </script> 261 <scri