Code Search for Developers
 
 
  

fckeditor.html from crlove at Krugle


Show fckeditor.html syntax highlighted

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * 
 * "Support Open Source software. What about a donation today?"
 * 
 * File Name: fckeditor.html
 * 	Main page that holds the editor.
 * 
 * File Authors:
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>FCKeditor</title>
	<meta name="robots" content="noindex, nofollow" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Cache-Control" content="public" />
	<script type="text/javascript">

// Instead of loading scripts and CSSs using inline tags, all scripts are
// loaded by code. In this way we can guarantee the correct processing order,
// otherwise external scripts and inline scripts could be executed in an
// unwanted order (IE).

function LoadScript( url )
{
	document.write( '<script type="text/javascript" src="' + url + '" onerror="alert(\'Error loading \' + this.src);"><\/script>' ) ;
}

function LoadCss( url )
{
	document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" onerror="alert(\'Error loading \' + this.src);" />' ) ;
}

// Main editor scripts.
var sSuffix = /msie/.test( navigator.userAgent.toLowerCase() ) ? 'ie' : 'gecko' ;

LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ;

// Base configuration file.
LoadScript( '../fckconfig.js' ) ;

	</script>
	<script type="text/javascript">

// Create the default cleanup object used by the editor.
if ( FCKBrowserInfo.IsIE )
{
	FCK.IECleanup = new FCKIECleanup( window ) ;
	FCK.IECleanup.AddItem( FCKTempBin, FCKTempBin.Reset ) ;
	FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ;
}

// The config hidden field is processed immediately, because
// CustomConfigurationsPath may be set in the page.
FCKConfig.ProcessHiddenField() ;

// Load the custom configurations file (if defined).
if ( FCKConfig.CustomConfigurationsPath.length > 0 )
	LoadScript( FCKConfig.CustomConfigurationsPath ) ;

	</script>
	<script type="text/javascript">

// Load configurations defined at page level.
FCKConfig_LoadPageConfig() ;

FCKConfig_PreProcess() ;

// Load the active skin CSS.
LoadCss( FCKConfig.SkinPath + 'fck_editor.css' ) ;

// Load the language file.
FCKLanguageManager.Initialize() ;
LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;

	</script>
	<script type="text/javascript">

// Initialize the editing area context menu.
FCK_ContextMenu_Init() ;

FCKPlugins.Load() ;

	</script>
	<script type="text/javascript">
	
// Set the editor interface direction.
window.document.dir = FCKLang.Dir ;

// Activate pasting operations.
if ( FCKConfig.ForcePasteAsPlainText || FCKConfig.AutoDetectPasteFromWord )
	FCK.Events.AttachEvent( "OnPaste", FCK.Paste ) ;

	</script>
	<script type="text/javascript">

window.onload = function()
{
	InitializeAPI() ;

	if ( FCKBrowserInfo.IsIE )
		FCK_PreloadImages() ;
	else
		LoadToolbarSetup() ;
}

function LoadToolbarSetup()
{
	FCKeditorAPI._FunctionQueue.Add( LoadToolbar ) ;
}

function LoadToolbar()
{
	var oToolbarSet = FCK.ToolbarSet = FCKToolbarSet_Create() ;
	
	if ( oToolbarSet.IsLoaded )
		StartEditor() ;
	else
	{
		oToolbarSet.OnLoad = StartEditor ;
		oToolbarSet.Load( FCKURLParams['Toolbar'] || 'Default' ) ;
	}
}

function StartEditor()
{
	// Remove the onload listener.
	FCK.ToolbarSet.OnLoad = null ;

	FCKeditorAPI._FunctionQueue.Remove( LoadToolbar ) ;

	FCK.Events.AttachEvent( 'OnStatusChange', WaitForActive ) ;

	// Start the editor.
	FCK.StartEditor() ;
}

function WaitForActive( editorInstance, newStatus )
{
	if ( newStatus == FCK_STATUS_ACTIVE )
	{
		if ( FCKBrowserInfo.IsGecko )
			FCKTools.RunFunction( window.onresize ) ;

		FCK.SetStatus( FCK_STATUS_COMPLETE ) ;

		// Call the special "FCKeditor_OnComplete" function that should be present in 
		// the HTML page where the editor is located.
		if ( typeof( window.parent.FCKeditor_OnComplete ) == 'function' )
			window.parent.FCKeditor_OnComplete( FCK ) ;	
	}
}

// Gecko browsers doens't calculate well that IFRAME size so we must
// recalculate it every time the window size changes.
if ( FCKBrowserInfo.IsGecko )
{
	function Window_OnResize()
	{
		if ( FCKBrowserInfo.IsOpera )
			return ;

		var oCell = document.getElementById( 'xEditingArea' ) ;

		var eInnerElement ;
		if ( eInnerElement = oCell.firstChild )
		{
			eInnerElement.style.height = 0 ;
			eInnerElement.style.height = oCell.scrollHeight - 2 ;
		}
	}
	window.onresize = Window_OnResize ;
}

	</script>
</head>
<body>
	<table width="100%" cellpadding="0" cellspacing="0" style="height: 100%; table-layout: fixed">
		<tr id="xToolbarRow" style="display: none">
			<td id="xToolbarSpace" style="overflow: hidden">
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr id="xCollapsed" style="display: none">
						<td id="xExpandHandle" class="TB_Expand" colspan="3">
							<img class="TB_ExpandImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>
					</tr>
					<tr id="xExpanded" style="display: none">
						<td id="xTBLeftBorder" class="TB_SideBorder" style="width: 1px; display: none;"></td>
						<td id="xCollapseHandle" style="display: none" class="TB_Collapse" valign="bottom">
							<img class="TB_CollapseImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>
						<td id="xToolbar" class="TB_ToolbarSet"></td>
						<td class="TB_SideBorder" style="width: 1px"></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr style="height: 100%">
			<td id="xEditingArea" valign="top"></td>
		</tr>
	</table>
</body>
</html>




See more files for this project here

crlove

Online psychological-test-based friend-making system.

Project homepage: http://sourceforge.net/projects/crlove
Programming language(s): Java,JavaScript,Ruby,XML
License: other

  css/
    behaviors/
      disablehandles.htc
      hiddenfield.gif
      hiddenfield.htc
      showtableborders.htc
    images/
      fck_anchor.gif
      fck_flashlogo.gif
      fck_pagebreak.gif
    fck_editorarea.css
    fck_internal.css
    fck_showtableborders_gecko.css
  dialog/
    common/
      images/
        locked.gif
        reset.gif
        unlocked.gif
      fck_dialog_common.css
      fck_dialog_common.js
      fcknumericfield.htc
      moz-bindings.xml
    fck_about/
      lgpl.html
      logo_fckeditor.gif
      logo_fredck.gif
    fck_docprops/
      fck_document_preview.html
    fck_flash/
      fck_flash.js
      fck_flash_preview.html
    fck_image/
      fck_image.js
      fck_image_preview.html
    fck_link/
      fck_link.js
    fck_select/
      fck_select.js
    fck_spellerpages/
      spellerpages/
        server-scripts/
          spellchecker.cfm
          spellchecker.php
          spellchecker.pl
        blank.html
        controlWindow.js
        controls.html
        spellChecker.js
        spellchecker.html
        spellerStyle.css
        wordWindow.js
    fck_template/
      images/
        template1.gif
        template2.gif
        template3.gif
    fck_universalkey/
      00.gif
      data.js
      diacritic.js
      dialogue.js
      fck_universalkey.css
      keyboard_layout.gif
      multihexa.js
    fck_about.html
    fck_anchor.html
    fck_button.html
    fck_checkbox.html
    fck_colorselector.html
    fck_docprops.html
    fck_find.html
    fck_flash.html
    fck_form.html
    fck_hiddenfield.html
    fck_image.html
    fck_link.html
    fck_listprop.html
    fck_paste.html
    fck_radiobutton.html
    fck_replace.html
    fck_select.html
    fck_smiley.html
    fck_source.html
    fck_specialchar.html
    fck_spellerpages.html
    fck_table.html
    fck_tablecell.html
    fck_template.html
    fck_textarea.html
    fck_textfield.html
    fck_universalkey.html
  filemanager/
    browser/
    upload/
  images/
    smiley/
    anchor.gif
    arrow_ltr.gif
    arrow_rtl.gif
    spacer.gif
  js/
    fckeditorcode_gecko.js
    fckeditorcode_ie.js
  lang/
    _getfontformat.html
    _translationstatus.txt
    ar.js
    bg.js
    bn.js
    bs.js
    ca.js
    cs.js
    da.js
    de.js
    el.js
    en-au.js
    en-ca.js
    en-uk.js
    en.js
    eo.js
    es.js
    et.js
    eu.js
    fa.js
    fi.js
    fo.js
    fr.js
    gl.js
    he.js
    hi.js
    hr.js
    hu.js
    it.js
    ja.js
    km.js
    ko.js
  plugins/
  skins/
  fckblank.html
  fckdebug.html
  fckdialog.html
  fckeditor.html
  fckeditor.original.html