import rt 3.8.7
[freeside.git] / rt / share / html / NoAuth / RichText / FCKeditor / editor / fckeditor.original.html
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/fckeditor.original.html b/rt/share/html/NoAuth/RichText/FCKeditor/editor/fckeditor.original.html
new file mode 100644 (file)
index 0000000..1e00431
--- /dev/null
@@ -0,0 +1,424 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\r
+<!--\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ *  - GNU General Public License Version 2 or later (the "GPL")\r
+ *    http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ *    http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ *    http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * Main page that holds the editor.\r
+-->\r
+<html>\r
+<head>\r
+       <title>FCKeditor</title>\r
+       <meta name="robots" content="noindex, nofollow">\r
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
+       <!-- @Packager.RemoveLine\r
+       <meta http-equiv="Cache-Control" content="public">\r
+       @Packager.RemoveLine -->\r
+       <script type="text/javascript">\r
+\r
+// #1645: Alert the user if opening FCKeditor in FF3 from local filesystem\r
+// without security.fileuri.strict_origin_policy disabled.\r
+if ( document.location.protocol == 'file:' )\r
+{\r
+       try\r
+       {\r
+               window.parent.document.domain ;\r
+       }\r
+       catch ( e )\r
+       {\r
+               window.addEventListener( 'load', function()\r
+                       {\r
+                               document.body.innerHTML = '\\r
+                                       <div style="border: 1px red solid; font-family: arial; font-size: 12px; color: red; padding:10px;">\\r
+                                               <p>\\r
+                                                       <b>Your browser security settings don\'t allow FCKeditor to be opened from\\r
+                                                       the local filesystem.<\/b>\\r
+                                               <\/p>\\r
+                                               <p>\\r
+                                                       Please open the <b>about:config<\/b> page and disable the\\r
+                                                       &quot;security.fileuri.strict_origin_policy&quot; option; then load this page again.\\r
+                                               <\/p>\\r
+                                               <p>\\r
+                                                       Check our <a href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/FAQ#ff3perms">FAQ<\/a>\\r
+                                                       for more information.\\r
+                                               <\/p>\\r
+                                       <\/div>' ;\r
+                       }, false ) ;\r
+       }\r
+}\r
+\r
+// Save a reference to the default domain.\r
+var FCK_ORIGINAL_DOMAIN ;\r
+\r
+// Automatically detect the correct document.domain (#123).\r
+(function()\r
+{\r
+       var d = FCK_ORIGINAL_DOMAIN = document.domain ;\r
+\r
+       while ( true )\r
+       {\r
+               // Test if we can access a parent property.\r
+               try\r
+               {\r
+                       var test = window.parent.document.domain ;\r
+                       break ;\r
+               }\r
+               catch( e ) {}\r
+\r
+               // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...\r
+               d = d.replace( /.*?(?:\.|$)/, '' ) ;\r
+\r
+               if ( d.length == 0 )\r
+                       break ;         // It was not able to detect the domain.\r
+\r
+               try\r
+               {\r
+                       document.domain = d ;\r
+               }\r
+               catch (e)\r
+               {\r
+                       break ;\r
+               }\r
+       }\r
+})() ;\r
+\r
+// Save a reference to the detected runtime domain.\r
+var FCK_RUNTIME_DOMAIN = document.domain ;\r
+\r
+var FCK_IS_CUSTOM_DOMAIN = ( FCK_ORIGINAL_DOMAIN != FCK_RUNTIME_DOMAIN ) ;\r
+\r
+// Instead of loading scripts and CSSs using inline tags, all scripts are\r
+// loaded by code. In this way we can guarantee the correct processing order,\r
+// otherwise external scripts and inline scripts could be executed in an\r
+// unwanted order (IE).\r
+\r
+function LoadScript( url )\r
+{\r
+       document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ;\r
+}\r
+\r
+// Main editor scripts.\r
+var sSuffix = ( /*@cc_on!@*/false ) ? 'ie' : 'gecko' ;\r
+\r
+/* @Packager.RemoveLine\r
+LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ;\r
+@Packager.RemoveLine */\r
+// @Packager.Remove.Start\r
+\r
+LoadScript( '_source/fckconstants.js' ) ;\r
+LoadScript( '_source/fckjscoreextensions.js' ) ;\r
+\r
+if ( sSuffix == 'ie' )\r
+       LoadScript( '_source/classes/fckiecleanup.js' ) ;\r
+\r
+LoadScript( '_source/internals/fckbrowserinfo.js' ) ;\r
+LoadScript( '_source/internals/fckurlparams.js' ) ;\r
+LoadScript( '_source/classes/fckevents.js' ) ;\r
+LoadScript( '_source/classes/fckdataprocessor.js' ) ;\r
+LoadScript( '_source/internals/fck.js' ) ;\r
+LoadScript( '_source/internals/fck_' + sSuffix + '.js' ) ;\r
+LoadScript( '_source/internals/fckconfig.js' ) ;\r
+\r
+LoadScript( '_source/internals/fckdebug_empty.js' ) ;\r
+LoadScript( '_source/internals/fckdomtools.js' ) ;\r
+LoadScript( '_source/internals/fcktools.js' ) ;\r
+LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ;\r
+LoadScript( '_source/fckeditorapi.js' ) ;\r
+LoadScript( '_source/classes/fckimagepreloader.js' ) ;\r
+LoadScript( '_source/internals/fckregexlib.js' ) ;\r
+LoadScript( '_source/internals/fcklistslib.js' ) ;\r
+LoadScript( '_source/internals/fcklanguagemanager.js' ) ;\r
+LoadScript( '_source/internals/fckxhtmlentities.js' ) ;\r
+LoadScript( '_source/internals/fckxhtml.js' ) ;\r
+LoadScript( '_source/internals/fckxhtml_' + sSuffix + '.js' ) ;\r
+LoadScript( '_source/internals/fckcodeformatter.js' ) ;\r
+LoadScript( '_source/internals/fckundo.js' ) ;\r
+LoadScript( '_source/classes/fckeditingarea.js' ) ;\r
+LoadScript( '_source/classes/fckkeystrokehandler.js' ) ;\r
+\r
+LoadScript( 'dtd/fck_xhtml10transitional.js' ) ;\r
+LoadScript( '_source/classes/fckstyle.js' ) ;\r
+LoadScript( '_source/internals/fckstyles.js' ) ;\r
+\r
+LoadScript( '_source/internals/fcklisthandler.js' ) ;\r
+LoadScript( '_source/classes/fckelementpath.js' ) ;\r
+LoadScript( '_source/classes/fckdomrange.js' ) ;\r
+LoadScript( '_source/classes/fckdocumentfragment_' + sSuffix + '.js' ) ;\r
+LoadScript( '_source/classes/fckw3crange.js' ) ;\r
+LoadScript( '_source/classes/fckdomrange_' + sSuffix + '.js' ) ;\r
+LoadScript( '_source/classes/fckdomrangeiterator.js' ) ;\r
+LoadScript( '_source/classes/fckenterkey.js' ) ;\r
+\r
+LoadScript( '_source/internals/fckdocumentprocessor.js' ) ;\r
+LoadScript( '_source/internals/fckselection.js' ) ;\r
+LoadScript( '_source/internals/fckselection_' + sSuffix + '.js' ) ;\r
+\r
+LoadScript( '_source/internals/fcktablehandler.js' ) ;\r
+LoadScript( '_source/internals/fcktablehandler_' + sSuffix + '.js' ) ;\r
+LoadScript( '_source/classes/fckxml.js' ) ;\r
+LoadScript( '_source/classes/fckxml_' + sSuffix + '.js' ) ;\r
+\r
+LoadScript( '_source/commandclasses/fcknamedcommand.js' ) ;\r
+LoadScript( '_source/commandclasses/fckstylecommand.js' ) ;\r
+LoadScript( '_source/commandclasses/fck_othercommands.js' ) ;\r
+LoadScript( '_source/commandclasses/fckshowblocks.js' ) ;\r
+LoadScript( '_source/commandclasses/fckspellcheckcommand_' + sSuffix + '.js' ) ;\r
+LoadScript( '_source/commandclasses/fcktextcolorcommand.js' ) ;\r
+LoadScript( '_source/commandclasses/fckpasteplaintextcommand.js' ) ;\r
+LoadScript( '_source/commandclasses/fckpastewordcommand.js' ) ;\r
+LoadScript( '_source/commandclasses/fcktablecommand.js' ) ;\r
+LoadScript( '_source/commandclasses/fckfitwindow.js' ) ;\r
+LoadScript( '_source/commandclasses/fcklistcommands.js' ) ;\r
+LoadScript( '_source/commandclasses/fckjustifycommands.js' ) ;\r
+LoadScript( '_source/commandclasses/fckindentcommands.js' ) ;\r
+LoadScript( '_source/commandclasses/fckblockquotecommand.js' ) ;\r
+LoadScript( '_source/commandclasses/fckcorestylecommand.js' ) ;\r
+LoadScript( '_source/commandclasses/fckremoveformatcommand.js' ) ;\r
+LoadScript( '_source/internals/fckcommands.js' ) ;\r
+\r
+LoadScript( '_source/classes/fckpanel.js' ) ;\r
+LoadScript( '_source/classes/fckicon.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarbuttonui.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarbutton.js' ) ;\r
+LoadScript( '_source/classes/fckspecialcombo.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarspecialcombo.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarstylecombo.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarfontformatcombo.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarfontscombo.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarfontsizecombo.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarpanelbutton.js' ) ;\r
+LoadScript( '_source/internals/fcktoolbaritems.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbar.js' ) ;\r
+LoadScript( '_source/classes/fcktoolbarbreak_' + sSuffix + '.js' ) ;\r
+LoadScript( '_source/internals/fcktoolbarset.js' ) ;\r
+LoadScript( '_source/internals/fckdialog.js' ) ;\r
+LoadScript( '_source/classes/fckmenuitem.js' ) ;\r
+LoadScript( '_source/classes/fckmenublock.js' ) ;\r
+LoadScript( '_source/classes/fckmenublockpanel.js' ) ;\r
+LoadScript( '_source/classes/fckcontextmenu.js' ) ;\r
+LoadScript( '_source/internals/fck_contextmenu.js' ) ;\r
+LoadScript( '_source/classes/fckhtmliterator.js' ) ;\r
+LoadScript( '_source/classes/fckplugin.js' ) ;\r
+LoadScript( '_source/internals/fckplugins.js' ) ;\r
+\r
+// @Packager.Remove.End\r
+\r
+// Base configuration file.\r
+LoadScript( '../fckconfig.js' ) ;\r
+\r
+       </script>\r
+       <script type="text/javascript">\r
+\r
+// Adobe AIR compatibility file.\r
+if ( FCKBrowserInfo.IsAIR )\r
+       LoadScript( 'js/fckadobeair.js' ) ;\r
+\r
+if ( FCKBrowserInfo.IsIE )\r
+{\r
+       // Remove IE mouse flickering.\r
+       try\r
+       {\r
+               document.execCommand( 'BackgroundImageCache', false, true ) ;\r
+       }\r
+       catch (e)\r
+       {\r
+               // We have been reported about loading problems caused by the above\r
+               // line. For safety, let's just ignore errors.\r
+       }\r
+\r
+       // Create the default cleanup object used by the editor.\r
+       FCK.IECleanup = new FCKIECleanup( window ) ;\r
+       FCK.IECleanup.AddItem( FCKTempBin, FCKTempBin.Reset ) ;\r
+       FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ;\r
+}\r
+\r
+// The first function to be called on selection change must the the styles\r
+// change checker, because the result of its processing may be used by another\r
+// functions listening to the same event.\r
+FCK.Events.AttachEvent( 'OnSelectionChange', function() { FCKStyles.CheckSelectionChanges() ; } ) ;\r
+\r
+// The config hidden field is processed immediately, because\r
+// CustomConfigurationsPath may be set in the page.\r
+FCKConfig.ProcessHiddenField() ;\r
+\r
+// Load the custom configurations file (if defined).\r
+if ( FCKConfig.CustomConfigurationsPath.length > 0 )\r
+       LoadScript( FCKConfig.CustomConfigurationsPath ) ;\r
+\r
+       </script>\r
+       <script type="text/javascript">\r
+\r
+// Load configurations defined at page level.\r
+FCKConfig_LoadPageConfig() ;\r
+\r
+FCKConfig_PreProcess() ;\r
+\r
+// Load the full debug script.\r
+if ( FCKConfig.Debug )\r
+       LoadScript( '_source/internals/fckdebug.js' ) ;\r
+\r
+       </script>\r
+       <script type="text/javascript">\r
+\r
+var FCK_InternalCSS                    = FCKConfig.BasePath + 'css/fck_internal.css' ;                                 // @Packager.RemoveLine\r
+var FCK_ShowTableBordersCSS    = FCKConfig.BasePath + 'css/fck_showtableborders_gecko.css' ;   // @Packager.RemoveLine\r
+/* @Packager.RemoveLine\r
+// CSS minified by http://iceyboard.no-ip.org/projects/css_compressor (see _dev/css_compression.txt).\r
+var FCK_InternalCSS                    = FCKTools.FixCssUrls( FCKConfig.BasePath + '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__UnknownObject{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_plugin.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)}' ) ;\r
+var FCK_ShowTableBordersCSS    = FCKTools.FixCssUrls( FCKConfig.BasePath + '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}' ) ;\r
+@Packager.RemoveLine */\r
+\r
+// Popup the debug window if debug mode is set to true. It guarantees that the\r
+// first debug message will not be lost.\r
+if ( FCKConfig.Debug )\r
+       FCKDebug._GetWindow() ;\r
+\r
+// Load the active skin CSS.\r
+document.write( FCKTools.GetStyleHtml( FCKConfig.SkinEditorCSS ) ) ;\r
+\r
+// Load the language file.\r
+FCKLanguageManager.Initialize() ;\r
+LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;\r
+\r
+       </script>\r
+       <script type="text/javascript">\r
+\r
+// Initialize the editing area context menu.\r
+FCK_ContextMenu_Init() ;\r
+\r
+FCKPlugins.Load() ;\r
+\r
+       </script>\r
+       <script type="text/javascript">\r
+\r
+// Set the editor interface direction.\r
+window.document.dir = FCKLang.Dir ;\r
+\r
+       </script>\r
+       <script type="text/javascript">\r
+\r
+window.onload = function()\r
+{\r
+       InitializeAPI() ;\r
+\r
+       if ( FCKBrowserInfo.IsIE )\r
+               FCK_PreloadImages() ;\r
+       else\r
+               LoadToolbarSetup() ;\r
+}\r
+\r
+function LoadToolbarSetup()\r
+{\r
+       FCKeditorAPI._FunctionQueue.Add( LoadToolbar ) ;\r
+}\r
+\r
+function LoadToolbar()\r
+{\r
+       var oToolbarSet = FCK.ToolbarSet = FCKToolbarSet_Create() ;\r
+\r
+       if ( oToolbarSet.IsLoaded )\r
+               StartEditor() ;\r
+       else\r
+       {\r
+               oToolbarSet.OnLoad = StartEditor ;\r
+               oToolbarSet.Load( FCKURLParams['Toolbar'] || 'Default' ) ;\r
+       }\r
+}\r
+\r
+function StartEditor()\r
+{\r
+       // Remove the onload listener.\r
+       FCK.ToolbarSet.OnLoad = null ;\r
+\r
+       FCKeditorAPI._FunctionQueue.Remove( LoadToolbar ) ;\r
+\r
+       FCK.Events.AttachEvent( 'OnStatusChange', WaitForActive ) ;\r
+\r
+       // Start the editor.\r
+       FCK.StartEditor() ;\r
+}\r
+\r
+function WaitForActive( editorInstance, newStatus )\r
+{\r
+       if ( newStatus == FCK_STATUS_ACTIVE )\r
+       {\r
+               if ( FCKBrowserInfo.IsGecko )\r
+                       FCKTools.RunFunction( window.onresize ) ;\r
+\r
+               if ( !FCKConfig.PreventSubmitHandler )\r
+                       _AttachFormSubmitToAPI() ;\r
+\r
+               FCK.SetStatus( FCK_STATUS_COMPLETE ) ;\r
+\r
+               // Call the special "FCKeditor_OnComplete" function that should be present in\r
+               // the HTML page where the editor is located.\r
+               if ( typeof( window.parent.FCKeditor_OnComplete ) == 'function' )\r
+                       window.parent.FCKeditor_OnComplete( FCK ) ;\r
+       }\r
+}\r
+\r
+// Gecko browsers doesn't calculate well the IFRAME size so we must\r
+// recalculate it every time the window size changes.\r
+if ( FCKBrowserInfo.IsGecko && !FCKBrowserInfo.IsOpera )\r
+{\r
+       window.onresize = function( e )\r
+       {\r
+               // Running in Chrome makes the window receive the event including subframes.\r
+               // we care only about this window. Ticket #1642.\r
+               // #2002: The originalTarget from the event can be the current document, the window, or the editing area.\r
+               if ( e && e.originalTarget !== document && e.originalTarget !== window && (!e.originalTarget.ownerDocument || e.originalTarget.ownerDocument != document ))\r
+                       return ;\r
+\r
+               var oCell = document.getElementById( 'xEditingArea' ) ;\r
+\r
+               var eInnerElement = oCell.firstChild ;\r
+               if ( eInnerElement )\r
+               {\r
+                       eInnerElement.style.height = '0px' ;\r
+                       eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;\r
+               }\r
+       }\r
+}\r
+\r
+       </script>\r
+</head>\r
+<body>\r
+       <table width="100%" cellpadding="0" cellspacing="0" style="height: 100%; table-layout: fixed">\r
+               <tr id="xToolbarRow" style="display: none">\r
+                       <td id="xToolbarSpace" style="overflow: hidden">\r
+                               <table width="100%" cellpadding="0" cellspacing="0">\r
+                                       <tr id="xCollapsed" style="display: none">\r
+                                               <td id="xExpandHandle" class="TB_Expand" colspan="3">\r
+                                                       <img class="TB_ExpandImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>\r
+                                       </tr>\r
+                                       <tr id="xExpanded" style="display: none">\r
+                                               <td id="xTBLeftBorder" class="TB_SideBorder" style="width: 1px; display: none;"></td>\r
+                                               <td id="xCollapseHandle" style="display: none" class="TB_Collapse" valign="bottom">\r
+                                                       <img class="TB_CollapseImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>\r
+                                               <td id="xToolbar" class="TB_ToolbarSet"></td>\r
+                                               <td class="TB_SideBorder" style="width: 1px"></td>\r
+                                       </tr>\r
+                               </table>\r
+                       </td>\r
+               </tr>\r
+               <tr>\r
+                       <td id="xEditingArea" valign="top" style="height: 100%"></td>\r
+               </tr>\r
+       </table>\r
+</body>\r
+</html>\r