phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] news_admin/js/fckeditor/editor fckblank.html, 1.1 fck


From: skwashd
Subject: [Phpgroupware-cvs] news_admin/js/fckeditor/editor fckblank.html, 1.1 fckdebug.html, 1.1 fckdialog.html, 1.1 fckeditor.html, 1.1 fckeditor.original.html, 1.1 fckeditorarea.html, 1.1
Date: Tue, 24 May 2005 16:32:00 +0200

Update of news_admin/js/fckeditor/editor

Added Files:
     Branch: MAIN
            fckblank.html 
            fckdebug.html 
            fckdialog.html 
            fckeditor.html 
            fckeditor.original.html 
            fckeditorarea.html 

Log Message:
I am working on a much better version of news_admin, this is just a taste of 
what is coming.

Adding FCKeditor, which has the following issues:
* Images and files support FCKd
* Spellcheck FCKing up

Didn't include non php code or samples other unneeded crap

====================================================
Index: fckblank.html
<html>
<head><title></title></head>
<body></body>
</html>

====================================================
Index: fckdebug.html
<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2004 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/
 *
 * File Name: fckdebug.html
 *      This is the Debug window.
 *      It automatically popups if the Debug = true in the configuration file.
 *
 * Version:  2.0 RC3
 * Modified: 2005-02-23 20:49:25
 *
 * File Authors:
 *              Frederico Caldeira Knabben (address@hidden)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
        <head>
                <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
                <title>FCKeditor Debug Window</title>
                <script type="text/javascript">

var oWindow ;
var oDiv ;

if ( !window.FCKMessages )
        window.FCKMessages = new Array() ;

function Initialize()
{
        oWindow = window.frames[ 'eOutput' ]
        oWindow.document.open() ;
        oWindow.document.write( '<div id="divMsg"></div>' ) ;
        oWindow.document.close() ;
        oDiv    = oWindow.document.getElementById('divMsg') ;
}

function Output( message, color )
{
        if ( color )
                message = '<font color="' + color + '">' + message + '</font>' ;

        window.FCKMessages[ window.FCKMessages.length ] = message ;
        StartTimer() ;
}

function StartTimer()
{
        window.setTimeout( 'CheckMessages()', 100 ) ;
}

function CheckMessages()
{
        if ( window.FCKMessages.length > 0 )
        {
                // Get the first item in the queue
                var sMessage = window.FCKMessages[0] ;

                // Removes the first item from the queue
                var oTempArray = new Array() ;
                for ( i = 1 ; i < window.FCKMessages.length ; i++ )
                        oTempArray[ i - 1 ] = window.FCKMessages[ i ] ;
                window.FCKMessages = oTempArray ;

                var d = new Date() ;
                var sTime =
                        ( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' +
                        ( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' +
                        ( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' +
                        ( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ;

                var oMsgDiv = oWindow.document.createElement( 'div' ) ;
                oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '</b>' ;
                oDiv.appendChild( oMsgDiv ) ;
                oMsgDiv.scrollIntoView() ;
        }
}

function Clear()
{
        oDiv.innerHTML = '' ;
}
                </script>
        </head>
        <body onload="Initialize();" bottomMargin="10" leftMargin="10" 
topMargin="10" rightMargin="10">
                <TABLE height="100%" cellSpacing="5" cellPadding="0" 
width="100%" border="0">
                        <TR>
                                <TD>
                                        <TABLE cellSpacing="0" cellPadding="0" 
width="100%" border="0">
                                                <TR>
                                                        <TD><FONT 
size="+2"><STRONG>FCKeditor Debug Window</STRONG></FONT></TD>
                                                        <TD 
align="right"><INPUT type="button" value="Clear" onclick="Clear();"></TD>
                                                </TR>
                                        </TABLE>
                                </TD>
                        </TR>
                        <TR>
                                <TD height="100%" style="BORDER-RIGHT: #696969 
1px solid; BORDER-TOP: #696969 1px solid; BORDER-LEFT: #696969 1px solid; 
BORDER-BOTTOM: #696969 1px solid">
                                        <iframe id="eOutput" name="eOutput" 
width="100%" height="100%" scrolling="auto" src="fckblank.html" 
frameborder="no"></iframe>
                                </TD>
                        </TR>
                </TABLE>
        </body>
</html>

====================================================
Index: fckdialog.html
<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2004 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/
 *
 * File Name: fckdialog.html
 *      This page is used by all dialog box as the container.
 *
 * Version:  2.0 RC3
 * Modified: 2005-02-19 14:49:02
 *
 * File Authors:
 *              Frederico Caldeira Knabben (address@hidden)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
        <head>
                <meta http-equiv="Content-Type" content="text/html; 
charset=utf-8" />
                <meta name="robots" content="noindex, nofollow" />
                <script type="text/javascript">
<!--

// On some Gecko browsers (probably over slow connections) the
// "dialogArguments" are not set so we must get it from the opener window.
if ( !dialogArguments )
        dialogArguments = window.opener.FCKLastDialogInfo ;

// Sets the Skin CSS
document.write( '<link href="' + dialogArguments.Editor.FCKConfig.SkinPath + 
'fck_dialog.css" type="text/css" rel="stylesheet">' ) ;

// Sets the language direction.
window.document.dir = dialogArguments.Editor.FCKLang.Dir ;

var sTitle = dialogArguments.Title ;
document.write( '<title>' + sTitle + '</title>' ) ;

function LoadInnerDialog()
{
        if ( window.onresize )
                window.onresize() ;

        // First of all, translate the dialog box contents.
        dialogArguments.Editor.FCKLanguageManager.TranslatePage( document ) ;

        window.frames["frmMain"].document.location.href = dialogArguments.Page ;
}

function InnerDialogLoaded()
{
        var oInnerDoc = 
document.getElementById('frmMain').contentWindow.document ;

        // Set the language direction.
        oInnerDoc.dir = dialogArguments.Editor.FCKLang.Dir ;

        // Sets the Skin CSS.
        oInnerDoc.write( '<link href="' + 
dialogArguments.Editor.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" 
rel="stylesheet">' ) ;

        SetOnKeyDown( oInnerDoc ) ;
        DisableContextMenu( oInnerDoc ) ;

        return dialogArguments.Editor ;
}

function SetOkButton( showIt )
{
        document.getElementById('btnOk').style.visibility = ( showIt ? '' : 
'hidden' ) ;
}

var bAutoSize = false ;

function SetAutoSize( autoSize )
{
        bAutoSize = autoSize ;
        RefreshSize() ;
}

function RefreshSize()
{
        if ( bAutoSize )
        {
                var oInnerDoc = 
document.getElementById('frmMain').contentWindow.document ;

                if ( document.all )
                        var iFrameHeight        = oInnerDoc.body.offsetHeight ;
                else
                        var iFrameHeight        = 
document.getElementById('frmMain').contentWindow.innerHeight ;

                var iInnerHeight        = oInnerDoc.body.scrollHeight ;

                var iDiff = iInnerHeight - iFrameHeight ;

                if ( iDiff > 0 )
                {
                        if ( document.all )
                                window.dialogHeight = ( parseInt( 
window.dialogHeight ) + iDiff ) + 'px' ;
                        else
                                window.resizeBy( 0, iDiff ) ;
                }
        }
}

function Ok()
{
        if ( window.frames["frmMain"].Ok && window.frames["frmMain"].Ok() )
                Cancel() ;
}

function Cancel()
{
        window.close() ;
}

// Object that holds all available tabs.
var oTabs = new Object() ;

function AddTab( tabCode, tabText, startHidden )
{
        if ( typeof( oTabs[ tabCode ] ) != 'undefined' )
                return ;

        var eTabsRow = document.getElementById( 'Tabs' ) ;

        var oCell = eTabsRow.insertCell(  eTabsRow.cells.length - 1 ) ;
        oCell.noWrap = true ;

        var oDiv = document.createElement( 'DIV' ) ;
        oDiv.className = 'PopupTab' ;
        oDiv.innerHTML = tabText ;
        oDiv.TabCode = tabCode ;
        oDiv.onclick = function()
        {
                SetSelectedTab( this.TabCode ) ;
        }

        if ( startHidden )
                oDiv.style.display = 'none' ;

        var eTabsRow = document.getElementById( 'TabsRow' ) ;

        oCell.appendChild( oDiv ) ;

        if ( eTabsRow.style.display == 'none' )
        {
                var eTitleArea = document.getElementById( 'TitleArea' ) ;
                eTitleArea.className = 'PopupTitle' ;

                oDiv.className = 'PopupTabSelected' ;
                eTabsRow.style.display = '' ;

                if ( ! dialogArguments.Editor.FCKBrowserInfo.IsIE )
                        window.onresize() ;
        }

        oTabs[ tabCode ] = oDiv ;
        oTabs[ tabCode ].Index = oTabs.length - 1 ;
}

function SetSelectedTab( tabCode )
{
        for ( var sCode in oTabs )
        {
                if ( sCode == tabCode )
                        oTabs[sCode].className = 'PopupTabSelected' ;
                else
                        oTabs[sCode].className = 'PopupTab' ;
        }

        if ( typeof( window.frames["frmMain"].OnDialogTabChange ) == 'function' 
)
                window.frames["frmMain"].OnDialogTabChange( tabCode ) ;
}

function SetTabVisibility( tabCode, isVisible )
{
        var oTab = oTabs[ tabCode ] ;
        oTab.style.display = isVisible ? '' : 'none' ;

        if ( ! isVisible && oTab.className == 'PopupTabSelected' )
        {
                for ( var sCode in oTabs )
                {
                        if ( oTabs[sCode].style.display != 'none' )
                        {
                                SetSelectedTab( sCode ) ;
                                break ;
                        }
                }
        }
}

function SetOnKeyDown( targetDocument )
{
        targetDocument.onkeydown = function ( e )
        {
                var e = e || event || this.parentWindow.event ;
                switch ( e.keyCode )
                {
                        case 13 :               // ENTER
                                var oTarget = e.srcElement || e.target ;
                                if ( oTarget.tagName == 'TEXTAREA' ) return ;
                                Ok() ;
                                return false ;
                        case 27 :               // ESC
                                Cancel() ;
                                return false ;
                                break ;
                }
        }
}
SetOnKeyDown( document ) ;

function DisableContextMenu( targetDocument )
{
        if ( dialogArguments.Editor.FCKBrowserInfo.IsIE ) return ;

        // Disable Right-Click
        var oOnContextMenu = function( e )
        {
                var sTagName = e.target.tagName ;
                if ( ! ( ( sTagName == "INPUT" && e.target.type == "text" ) || 
sTagName == "TEXTAREA" ) )
                        e.preventDefault() ;
        }
        targetDocument.addEventListener( 'contextmenu', oOnContextMenu, true ) ;
}
DisableContextMenu( document ) ;

if ( ! dialogArguments.Editor.FCKBrowserInfo.IsIE )
{
        window.onresize = function()
        {
                var oFrame = document.getElementById("frmMain") ;

                if ( ! oFrame )
                return ;

                oFrame.height = 0 ;

                var oCell = document.getElementById("FrameCell") ;
                var iHeight = oCell.offsetHeight ;

                oFrame.height = iHeight - 2 ;
        }
}

window.onfocus = function()
{
        document.getElementById('frmMain').contentWindow.focus() ;
}

//-->
                </script>
        </head>
        <body onload="LoadInnerDialog();" class="PopupBody">
                <table height="100%" cellspacing="0" cellpadding="0" 
width="100%" border="0">
                        <tr>
                                <td id="TitleArea" class="PopupTitle 
PopupTitleBorder">
                                        <script type="text/javascript">
<!--
document.write( sTitle ) ;
//-->
                                        </script>
                                </td>
                        </tr>
                        <tr id="TabsRow" style="DISPLAY: none">
                                <td class="PopupTabArea">
                                        <table border="0" cellpadding="0" 
cellspacing="0" width="100%">
                                                <tr id="Tabs" 
onselectstart="return false;">
                                                        <td 
class="PopupTabEmptyArea">&nbsp;</td>
                                                        <td 
class="PopupTabEmptyArea" width="100%">&nbsp;</td>
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                        <tr>
                                <td id="FrameCell" height="100%" valign="top">
                                        <iframe id="frmMain" 
src="fckblank.html" name="frmMain" frameborder="0" height="100%" width="100%" 
scrolling="auto">
                                        </iframe>
                                </td>
                        </tr>
                        <tr>
                                <td class="PopupButtons">
                                        <table border="0" cellpadding="0" 
cellspacing="0">
                                                <tr>
                                                        <td 
width="100%">&nbsp;</td>
                                                        <td nowrap="nowrap">
                                                                <input 
id="btnOk" style="VISIBILITY: hidden; WIDTH: 100px" type="button" value="Ok" 
class="Button"
                                                                        
onclick="Ok();" fckLang="DlgBtnOK" />&nbsp; <input type="button" value="Cancel" 
class="Button" onclick="Cancel();" fckLang="DlgBtnCancel" />
                                                        </td>
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                </table>
        </body>
</html>

====================================================
Index: fckeditor.html
<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2004 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/
 *
 * File Name: fckeditor.html
 *      Main page that holds the editor.
 *
 * Version:  2.0 RC3
 * Modified: 2005-03-02 10:54:21
 *
 * File Authors:
 *              Frederico Caldeira Knabben (address@hidden)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
        <head>
                <title>FCKeditor</title>
                <meta name="robots" content="noindex, nofollow" />
                <meta http-equiv="Content-Type" content="text/html; 
charset=utf-8" />
                <script type="text/javascript" 
src="lang/fcklanguagemanager.js"></script>
                <meta http-equiv="Cache-Control" content="public">
                <script type="text/javascript" src="js/fck_startup.js"></script>
        </head>
        <body>
                <table height="100%" width="100%" cellpadding="0" 
cellspacing="0" border="0" style="TABLE-LAYOUT: fixed">
                        <tr>
                                <td unselectable="on" style="OVERFLOW: hidden">
                                        <table width="100%" cellpadding="0" 
cellspacing="0" border="0">
                                                <tr id="Collapsed" 
style="DISPLAY: none">
                                                        <td id="ExpandHandle" 
class="TB_Expand" unselectable="on" colspan="3" 
onclick="FCKToolbarSet.Expand();return false;"><img class="TB_ExpandImg" 
src="images/spacer.gif" width="8" height="4" unselectable="on"></td>
                                                </tr>
                                                <tr id="Expanded" 
style="DISPLAY: none">
                                                        <td id="CollapseHandle" 
style="DISPLAY: none" class="TB_Collapse"
                                                                
unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return 
false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" 
height="4" unselectable="on"></td>
                                                        <td id="eToolbar" 
class="TB_ToolbarSet" unselectable="on"></td>
                                                        <td width="1" 
style="BACKGROUND-COLOR: #696969"></td>
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                        <tr id="eWysiwyg">
                                <td id="eWysiwygCell" height="100%" 
valign="top">
                                        <iframe id="eEditorArea" 
name="eEditorArea" height="100%" width="100%" frameborder="no" 
src="fckeditorarea.html"></iframe>
                                </td>
                        </tr>
                        <tr id="eSource" style="DISPLAY: none">
                                <td class="Source" height="100%" valign="top">
                                        <textarea id="eSourceField" dir="ltr" 
style="WIDTH: 100%; HEIGHT: 100%"></textarea>
                                </td>
                        </tr>
                </table>
        </body>
</html>

====================================================
Index: fckeditor.original.html
<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2004 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/
 *
 * File Name: fckeditor.original.html
 *      Main page that holds the editor.
 *
 * Version:  2.0 RC3
 * Modified: 2005-03-02 10:54:21
 *
 * File Authors:
 *              Frederico Caldeira Knabben (address@hidden)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
        <head>
                <title>FCKeditor</title>
                <meta name="vs_targetSchema" 
content="http://schemas.microsoft.com/intellisense/ie5";> <!-- 
@Packager.RemoveLine -->
                <meta name="robots" content="noindex, nofollow" />
                <meta http-equiv="Content-Type" content="text/html; 
charset=utf-8" />
                <script type="text/javascript" 
src="lang/fcklanguagemanager.js"></script>
                <!-- @Packager.RemoveLine
                <meta http-equiv="Cache-Control" content="public">
                @Packager.RemoveLine -->
                <!-- @Packager.Remove.Start -->
                <script type="text/javascript" 
src="_source/internals/fckcoreextensions.js"></script>
                <script type="text/javascript" 
src="_source/globals/fck_constants.js"></script>
                <script type="text/javascript" 
src="_source/internals/fckbrowserinfo.js"></script>
                <script type="text/javascript" 
src="_source/internals/fckscriptloader.js"></script>
                <script type="text/javascript" 
src="_source/internals/fckurlparams.js"></script>
                <script type="text/javascript" 
src="_source/internals/fck.js"></script>
                <script type="text/javascript" 
src="_source/internals/fckconfig.js"></script>
                <script type="text/javascript" 
src="_source/globals/fckeditorapi.js"></script>
                <script type="text/javascript" 
src="_source/internals/fck_onload.js"></script>
                <!-- @Packager.Remove.End -->
                <!-- @Packager.RemoveLine
                <script type="text/javascript" src="js/fck_startup.js"></script>
                @Packager.RemoveLine -->
        </head>
        <body>
                <table height="100%" width="100%" cellpadding="0" 
cellspacing="0" border="0" style="TABLE-LAYOUT: fixed">
                        <tr>
                                <td unselectable="on" style="OVERFLOW: hidden">
                                        <table width="100%" cellpadding="0" 
cellspacing="0" border="0">
                                                <tr id="Collapsed" 
style="DISPLAY: none">
                                                        <td id="ExpandHandle" 
class="TB_Expand" unselectable="on" colspan="3" 
onclick="FCKToolbarSet.Expand();return false;"><img class="TB_ExpandImg" 
src="images/spacer.gif" width="8" height="4" unselectable="on"></td>
                                                </tr>
                                                <tr id="Expanded" 
style="DISPLAY: none">
                                                        <td id="CollapseHandle" 
style="DISPLAY: none" class="TB_Collapse"
                                                                
unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return 
false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" 
height="4" unselectable="on"></td>
                                                        <td id="eToolbar" 
class="TB_ToolbarSet" unselectable="on"></td>
                                                        <td width="1" 
style="BACKGROUND-COLOR: #696969"></td>
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                        <tr id="eWysiwyg">
                                <td id="eWysiwygCell" height="100%" 
valign="top">
                                        <iframe id="eEditorArea" 
name="eEditorArea" height="100%" width="100%" frameborder="no" 
src="fckeditorarea.html"></iframe>
                                </td>
                        </tr>
                        <tr id="eSource" style="DISPLAY: none">
                                <td class="Source" height="100%" valign="top">
                                        <textarea id="eSourceField" dir="ltr" 
style="WIDTH: 100%; HEIGHT: 100%"></textarea>
                                </td>
                        </tr>
                </table>
        </body>
</html>

====================================================
Index: fckeditorarea.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html>
<head>
<title>FCKeditor - Editor Area</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body></body>
</html>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]