Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 10th, 2012  |  syntax: HTML  |  size: 17.12 KB  |  views: 1,335  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <iframe width="100%" scrolling="no" height="260px" frameborder="0" src="/resources/editors/fckeditor/editor/fckeditor.html?InstanceName=ta_OpenCmsHtml.LargeNews_1_.Teaser_1_.0&amp;Toolbar=OpenCmsWidget" id="ta_OpenCmsHtml.LargeNews_1_.Teaser_1_.0___Frame">
  2.  
  3. <html><head>
  4.         <title>FCKeditor</title>
  5.         <meta content="noindex, nofollow" name="robots">
  6.         <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  7.         <meta content="public" http-equiv="Cache-Control">
  8.         <script type="text/javascript">
  9.  
  10. // Instead of loading scripts and CSSs using inline tags, all scripts are
  11. // loaded by code. In this way we can guarantee the correct processing order,
  12. // otherwise external scripts and inline scripts could be executed in an
  13. // unwanted order (IE).
  14.  
  15. function LoadScript( url )
  16. {
  17.         document.write( '&lt;scr' + 'ipt type="text/javascript" src="' + url + '"&gt;&lt;\/scr' + 'ipt&gt;' ) ;
  18. }
  19.  
  20. function LoadCss( url )
  21. {
  22.         document.write( '&lt;link href="' + url + '" type="text/css" rel="stylesheet" /&gt;' ) ;
  23. }
  24.  
  25. // Main editor scripts.
  26. var sSuffix = ( /*@cc_on!@*/false ) ? 'ie' : 'gecko' ;
  27.  
  28. LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ;
  29.  
  30. // Base configuration file.
  31. LoadScript( '../fckconfig.js' ) ;
  32.  
  33.         </script><script src="js/fckeditorcode_gecko.js" type="text/javascript"></script><script src="../fckconfig.js" type="text/javascript"></script>
  34.         <script type="text/javascript">
  35.  
  36. if ( FCKBrowserInfo.IsIE )
  37. {
  38.         // Remove IE mouse flickering.
  39.         try
  40.         {
  41.                 document.execCommand( 'BackgroundImageCache', false, true ) ;
  42.         }
  43.         catch (e)
  44.         {
  45.                 // We have been reported about loading problems caused by the above
  46.                 // line. For safety, let's just ignore errors.
  47.         }
  48.  
  49.         // Create the default cleanup object used by the editor.
  50.         FCK.IECleanup = new FCKIECleanup( window ) ;
  51.         FCK.IECleanup.AddItem( FCKTempBin, FCKTempBin.Reset ) ;
  52.         FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ;
  53. }
  54.  
  55. // The first function to be called on selection change must the the styles
  56. // change checker, because the result of its processing may be used by another
  57. // functions listening to the same event.
  58. FCK.Events.AttachEvent( 'OnSelectionChange', function() { FCKStyles.CheckSelectionChanges() ; } ) ;
  59.  
  60. // The config hidden field is processed immediately, because
  61. // CustomConfigurationsPath may be set in the page.
  62. FCKConfig.ProcessHiddenField() ;
  63.  
  64. // Load the custom configurations file (if defined).
  65. if ( FCKConfig.CustomConfigurationsPath.length &gt; 0 )
  66.         LoadScript( FCKConfig.CustomConfigurationsPath ) ;
  67.  
  68.         </script><script src="/cms/system/workplace/editors/fckeditor/configwidget.js?config=anchor,link,formatselect,source,stylesxml:true,imagegallery,downloadgallery,linkgallery,htmlgallery,tablegallery" type="text/javascript"></script>
  69.         <script type="text/javascript">
  70.  
  71. // Load configurations defined at page level.
  72. FCKConfig_LoadPageConfig() ;
  73.  
  74. FCKConfig_PreProcess() ;
  75.  
  76. // Load the active skin CSS.
  77. LoadCss( FCKConfig.SkinPath + 'fck_editor.css' ) ;
  78.  
  79. // Load the language file.
  80. FCKLanguageManager.Initialize() ;
  81. LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;
  82.  
  83.         </script><link rel="stylesheet" type="text/css" href="/resources/editors/fckeditor/editor/skins/opencms/fck_editor.css"><script src="lang/en.js" type="text/javascript"></script>
  84.         <script type="text/javascript">
  85.  
  86. // Initialize the editing area context menu.
  87. FCK_ContextMenu_Init() ;
  88.  
  89. FCKPlugins.Load() ;
  90.  
  91.         </script><script src="/cms/system/workplace/editors/fckeditor/plugins/opencms/fckplugin.js" type="text/javascript"></script><script src="/cms/system/workplace/editors/fckeditor/plugins/ocmsimage/lang/en.js" type="text/javascript"></script><script src="/cms/system/workplace/editors/fckeditor/plugins/ocmsimage/fckplugin.js" type="text/javascript"></script>
  92.         <script type="text/javascript">
  93.  
  94. // Set the editor interface direction.
  95. window.document.dir = FCKLang.Dir ;
  96.  
  97.         </script>
  98.         <script type="text/javascript">
  99.  
  100. window.onload = function()
  101. {
  102.         InitializeAPI() ;
  103.  
  104.         if ( FCKBrowserInfo.IsIE )
  105.                 FCK_PreloadImages() ;
  106.         else
  107.                 LoadToolbarSetup() ;
  108. }
  109.  
  110. function LoadToolbarSetup()
  111. {
  112.         FCKeditorAPI._FunctionQueue.Add( LoadToolbar ) ;
  113. }
  114.  
  115. function LoadToolbar()
  116. {
  117.         var oToolbarSet = FCK.ToolbarSet = FCKToolbarSet_Create() ;
  118.  
  119.         if ( oToolbarSet.IsLoaded )
  120.                 StartEditor() ;
  121.         else
  122.         {
  123.                 oToolbarSet.OnLoad = StartEditor ;
  124.                 oToolbarSet.Load( FCKURLParams['Toolbar'] || 'Default' ) ;
  125.         }
  126. }
  127.  
  128. function StartEditor()
  129. {
  130.         // Remove the onload listener.
  131.         FCK.ToolbarSet.OnLoad = null ;
  132.  
  133.         FCKeditorAPI._FunctionQueue.Remove( LoadToolbar ) ;
  134.  
  135.         FCK.Events.AttachEvent( 'OnStatusChange', WaitForActive ) ;
  136.  
  137.         // Start the editor.
  138.         FCK.StartEditor() ;
  139. }
  140.  
  141. function WaitForActive( editorInstance, newStatus )
  142. {
  143.         if ( newStatus == FCK_STATUS_ACTIVE )
  144.         {
  145.                 if ( FCKBrowserInfo.IsGecko )
  146.                         FCKTools.RunFunction( window.onresize ) ;
  147.  
  148.                 _AttachFormSubmitToAPI() ;
  149.  
  150.                 FCK.SetStatus( FCK_STATUS_COMPLETE ) ;
  151.  
  152.                 // Call the special "FCKeditor_OnComplete" function that should be present in
  153.                 // the HTML page where the editor is located.
  154.                 if ( typeof( window.parent.FCKeditor_OnComplete ) == 'function' )
  155.                         window.parent.FCKeditor_OnComplete( FCK ) ;
  156.         }
  157. }
  158.  
  159. // Gecko browsers doens't calculate well that IFRAME size so we must
  160. // recalculate it every time the window size changes.
  161. if ( FCKBrowserInfo.IsGecko )
  162. {
  163.         function Window_OnResize()
  164.         {
  165.                 if ( FCKBrowserInfo.IsOpera )
  166.                         return ;
  167.  
  168.                 var oCell = document.getElementById( 'xEditingArea' ) ;
  169.  
  170.                 var eInnerElement = oCell.firstChild ;
  171.                 if ( eInnerElement )
  172.                 {
  173.                         eInnerElement.style.height = 0 ;
  174.                         eInnerElement.style.height = oCell.scrollHeight - 2 ;
  175.                 }
  176.         }
  177.         window.onresize = Window_OnResize ;
  178. }
  179.  
  180.         </script>
  181. </head>
  182. <body>
  183.         <table width="100%" cellspacing="0" cellpadding="0" style="height: 100%; table-layout: fixed">
  184.                 <tbody><tr style="" id="xToolbarRow">
  185.                         <td style="overflow: hidden" id="xToolbarSpace">
  186.                                 <table width="100%" cellspacing="0" cellpadding="0">
  187.                                         <tbody><tr style="" id="xCollapsed">
  188.                                                 <td colspan="3" class="TB_Expand" id="xExpandHandle" title="Expand Toolbar">
  189.                                                         <img width="8" height="4" src="images/spacer.gif" alt="" class="TB_ExpandImg"></td>
  190.                                         </tr>
  191.                                         <tr style="display: none; -moz-user-select: none;" id="xExpanded">
  192.                                                 <td style="width: 1px; display: none;" class="TB_SideBorder" id="xTBLeftBorder"></td>
  193.                                                 <td valign="bottom" class="TB_Collapse" style="" id="xCollapseHandle" title="Collapse Toolbar">
  194.                                                         <img width="8" height="4" src="images/spacer.gif" alt="" class="TB_CollapseImg"></td>
  195.                                                 <td class="TB_ToolbarSet" id="xToolbar"><table cellspacing="0" cellpadding="0" class="TB_Toolbar" style="float: left;" dir="ltr"><tbody><tr><td><div class="TB_Start"></div></td><td><div title="Undo" class="TB_Button_Disabled"><img src="images/spacer.gif" style="background-position: 0px -208px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Redo" class="TB_Button_Disabled"><img src="images/spacer.gif" style="background-position: 0px -224px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Select All" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -272px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Remove Format" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -288px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Cut" class="TB_Button_Disabled"><img src="images/spacer.gif" style="background-position: 0px -96px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Copy" class="TB_Button_Disabled"><img src="images/spacer.gif" style="background-position: 0px -112px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Paste" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -128px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Paste as plain text" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -144px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Paste from Word" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -160px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Bold" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -304px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Italic" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -320px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Underline" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -336px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Strike Through" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -352px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Subscript" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -368px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Superscript" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -384px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_End"></div></td></tr></tbody></table><table cellspacing="0" cellpadding="0" class="TB_Toolbar" style="float: left;" dir="ltr"><tbody><tr><td><div class="TB_Start"></div></td><td><div title="Left Justify" class="TB_Button_On"><img src="images/spacer.gif" style="background-position: 0px -464px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Center Justify" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -480px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Right Justify" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -496px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Block Justify" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -512px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Insert/Remove Numbered List" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -400px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Insert/Remove Bulleted List" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -416px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Decrease Indent" class="TB_Button_Disabled"><img src="images/spacer.gif" style="background-position: 0px -432px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Increase Indent" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -448px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_End"></div></td></tr></tbody></table><table cellspacing="0" cellpadding="0" class="TB_Toolbar" style="float: left;" dir="ltr"><tbody><tr><td><div class="TB_Start"></div></td><td><div title="Source" class="TB_Button_Off"><table cellspacing="0" cellpadding="0"><tbody><tr><td><img src="images/spacer.gif" style="background-position: 0px 0px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></td><td nowrap="" class="TB_Button_Text">Source</td><td><img class="TB_Button_Padding" src="images/spacer.gif"></td></tr></tbody></table></div></td><td><div class="TB_Separator"></div></td><td><table cellspacing="0" cellpadding="0" class=""><tbody><tr><td class="SC_FieldCaption">Format</td><td><div class="SC_Field" style="width: 100px;"><table width="100%" cellspacing="0" cellpadding="0" style="TABLE-LAYOUT: fixed;"><tbody><tr><td class="SC_FieldLabel"><label style="-moz-user-select: none;">Normal</label></td><td class="SC_FieldButton">&nbsp;</td></tr></tbody></table></div></td></tr></tbody></table></td><td><table cellspacing="0" cellpadding="0" class=""><tbody><tr><td class="SC_FieldCaption">Style</td><td><div class="SC_Field" style="width: 100px;"><table width="100%" cellspacing="0" cellpadding="0" style="TABLE-LAYOUT: fixed;"><tbody><tr><td class="SC_FieldLabel"><label>&nbsp;</label></td><td class="SC_FieldButton">&nbsp;</td></tr></tbody></table></div></td></tr></tbody></table></td><td><div title="Link" class="TB_Button_Off"><img src="/resources/editors/fckeditor/editor/skins/opencms/toolbar/oc-link.gif" class="TB_Button_Image"></div></td><td><div title="Insert/Edit Anchor" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -560px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div title="Remove Link" class="TB_Button_Disabled"><img src="images/spacer.gif" style="background-position: 0px -544px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_End"></div></td></tr></tbody></table><table cellspacing="0" cellpadding="0" class="TB_Toolbar" style="float: left;" dir="ltr"><tbody><tr><td><div class="TB_Start"></div></td><td><div title="Image gallery" class="TB_Button_Off"><img src="/resources/editors/fckeditor/editor/skins/opencms/toolbar/oc-imagegallery.gif" class="TB_Button_Image"></div></td><td><div title="Download gallery" class="TB_Button_Off"><img src="/resources/editors/fckeditor/editor/skins/opencms/toolbar/oc-downloadgallery.gif" class="TB_Button_Image"></div></td><td><div title="External links gallery" class="TB_Button_Off"><img src="/resources/editors/fckeditor/editor/skins/opencms/toolbar/oc-linkgallery.gif" class="TB_Button_Image"></div></td><td><div title="HTML gallery" class="TB_Button_Off"><img src="/resources/editors/fckeditor/editor/skins/opencms/toolbar/oc-htmlgallery.gif" class="TB_Button_Image"></div></td><td><div title="Table gallery" class="TB_Button_Off"><img src="/resources/editors/fckeditor/editor/skins/opencms/toolbar/oc-tablegallery.gif" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Insert Special Character" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -656px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Print" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -176px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_Separator"></div></td><td><div title="Maximize the editor size" class="TB_Button_Off"><img src="images/spacer.gif" style="background-position: 0px -1040px; background-image: url(&quot;/resources/editors/fckeditor/editor/skins/opencms/fck_strip.gif&quot;);" class="TB_Button_Image"></div></td><td><div class="TB_End"></div></td></tr></tbody></table></td>
  196.                                                 <td style="width: 1px" class="TB_SideBorder"></td>
  197.                                         </tr>
  198.                                 </tbody></table>
  199.                         </td>
  200.                 </tr>
  201.                 <tr>
  202.                         <td valign="top" style="height: 100%" id="xEditingArea"><iframe width="100%" height="100%" frameborder="0" style="height: 250px;"></iframe></td>
  203.                 </tr>
  204.         </tbody></table>
  205.  
  206.  
  207. </body></html>
  208.  
  209. </iframe>
clone this paste RAW Paste Data