forked from extern/egroupware
upgrading to 2.6.4.1, removing _samples and unneeded connectors
This commit is contained in:
parent
d160101c65
commit
b0efbe2637
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<!--
|
<!--
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This is the sample plugin definition file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Register the related commands.
|
|
||||||
FCKCommands.RegisterCommand( 'My_Find' , new FCKDialogCommand( FCKLang['DlgMyFindTitle'] , FCKLang['DlgMyFindTitle'] , FCKConfig.PluginsPath + 'findreplace/find.html' , 340, 170 ) ) ;
|
|
||||||
FCKCommands.RegisterCommand( 'My_Replace' , new FCKDialogCommand( FCKLang['DlgMyReplaceTitle'], FCKLang['DlgMyReplaceTitle'] , FCKConfig.PluginsPath + 'findreplace/replace.html', 340, 200 ) ) ;
|
|
||||||
|
|
||||||
// Create the "Find" toolbar button.
|
|
||||||
var oFindItem = new FCKToolbarButton( 'My_Find', FCKLang['DlgMyFindTitle'] ) ;
|
|
||||||
oFindItem.IconPath = FCKConfig.PluginsPath + 'findreplace/find.gif' ;
|
|
||||||
|
|
||||||
FCKToolbarItems.RegisterItem( 'My_Find', oFindItem ) ; // 'My_Find' is the name used in the Toolbar config.
|
|
||||||
|
|
||||||
// Create the "Replace" toolbar button.
|
|
||||||
var oReplaceItem = new FCKToolbarButton( 'My_Replace', FCKLang['DlgMyReplaceTitle'] ) ;
|
|
||||||
oReplaceItem.IconPath = FCKConfig.PluginsPath + 'findreplace/replace.gif' ;
|
|
||||||
|
|
||||||
FCKToolbarItems.RegisterItem( 'My_Replace', oReplaceItem ) ; // 'My_Replace' is the name used in the Toolbar config.
|
|
Binary file not shown.
Before Width: | Height: | Size: 595 B |
@ -1,172 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This is the sample "Find" plugin window.
|
|
||||||
-->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta content="noindex, nofollow" name="robots">
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
var oEditor = window.parent.InnerDialogLoaded() ;
|
|
||||||
|
|
||||||
function OnLoad()
|
|
||||||
{
|
|
||||||
// Whole word is available on IE only.
|
|
||||||
if ( oEditor.FCKBrowserInfo.IsIE )
|
|
||||||
document.getElementById('divWord').style.display = '' ;
|
|
||||||
|
|
||||||
// First of all, translate the dialog box texts.
|
|
||||||
oEditor.FCKLanguageManager.TranslatePage( document ) ;
|
|
||||||
|
|
||||||
window.parent.SetAutoSize( true ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function btnStat(frm)
|
|
||||||
{
|
|
||||||
document.getElementById('btnFind').disabled =
|
|
||||||
( document.getElementById('txtFind').value.length == 0 ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll )
|
|
||||||
{
|
|
||||||
for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
|
|
||||||
{
|
|
||||||
var oNode = parentNode.childNodes[i] ;
|
|
||||||
if ( oNode.nodeType == 3 )
|
|
||||||
{
|
|
||||||
var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ;
|
|
||||||
if ( oNode.nodeValue != sReplaced )
|
|
||||||
{
|
|
||||||
oNode.nodeValue = sReplaced ;
|
|
||||||
if ( ! replaceAll )
|
|
||||||
return true ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( ReplaceTextNodes( oNode, regex, replaceValue ) )
|
|
||||||
return true ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function GetRegexExpr()
|
|
||||||
{
|
|
||||||
if ( document.getElementById('chkWord').checked )
|
|
||||||
var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ;
|
|
||||||
else
|
|
||||||
var sExpr = document.getElementById('txtFind').value ;
|
|
||||||
|
|
||||||
return sExpr ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function GetCase()
|
|
||||||
{
|
|
||||||
return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Ok()
|
|
||||||
{
|
|
||||||
if ( document.getElementById('txtFind').value.length == 0 )
|
|
||||||
return ;
|
|
||||||
|
|
||||||
if ( oEditor.FCKBrowserInfo.IsIE )
|
|
||||||
FindIE() ;
|
|
||||||
else
|
|
||||||
FindGecko() ;
|
|
||||||
}
|
|
||||||
|
|
||||||
var oRange = null ;
|
|
||||||
|
|
||||||
function FindIE()
|
|
||||||
{
|
|
||||||
if ( oRange == null )
|
|
||||||
oRange = oEditor.FCK.EditorDocument.body.createTextRange() ;
|
|
||||||
|
|
||||||
var iFlags = 0 ;
|
|
||||||
|
|
||||||
if ( chkCase.checked )
|
|
||||||
iFlags = iFlags | 4 ;
|
|
||||||
|
|
||||||
if ( chkWord.checked )
|
|
||||||
iFlags = iFlags | 2 ;
|
|
||||||
|
|
||||||
var bFound = oRange.findText( document.getElementById('txtFind').value, 1, iFlags ) ;
|
|
||||||
|
|
||||||
if ( bFound )
|
|
||||||
{
|
|
||||||
oRange.scrollIntoView() ;
|
|
||||||
oRange.select() ;
|
|
||||||
oRange.collapse(false) ;
|
|
||||||
oLastRangeFound = oRange ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
oRange = null ;
|
|
||||||
alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function FindGecko()
|
|
||||||
{
|
|
||||||
var bCase = document.getElementById('chkCase').checked ;
|
|
||||||
var bWord = document.getElementById('chkWord').checked ;
|
|
||||||
|
|
||||||
// window.find( searchString, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog ) ;
|
|
||||||
oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) ;
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
|
|
||||||
<div align="center">
|
|
||||||
This is my Plugin!
|
|
||||||
</div>
|
|
||||||
<table cellSpacing="3" cellPadding="2" width="100%" border="0">
|
|
||||||
<tr>
|
|
||||||
<td nowrap>
|
|
||||||
<label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label>
|
|
||||||
</td>
|
|
||||||
<td width="100%">
|
|
||||||
<input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text">
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<input id="btnFind" style="WIDTH: 100%; PADDING-RIGHT: 5px; PADDING-LEFT: 5px" disabled
|
|
||||||
onclick="Ok();" type="button" value="Find" fckLang="DlgMyFindFindBtn">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td valign="bottom" colSpan="3">
|
|
||||||
<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match
|
|
||||||
case</label>
|
|
||||||
<br>
|
|
||||||
<div id="divWord" style="DISPLAY: none">
|
|
||||||
<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match
|
|
||||||
whole word</label>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* English language file for the sample plugin.
|
|
||||||
*/
|
|
||||||
|
|
||||||
FCKLang['DlgMyReplaceTitle'] = 'Plugin - Replace' ;
|
|
||||||
FCKLang['DlgMyReplaceFindLbl'] = 'Find what:' ;
|
|
||||||
FCKLang['DlgMyReplaceReplaceLbl'] = 'Replace with:' ;
|
|
||||||
FCKLang['DlgMyReplaceCaseChk'] = 'Match case' ;
|
|
||||||
FCKLang['DlgMyReplaceReplaceBtn'] = 'Replace' ;
|
|
||||||
FCKLang['DlgMyReplaceReplAllBtn'] = 'Replace All' ;
|
|
||||||
FCKLang['DlgMyReplaceWordChk'] = 'Match whole word' ;
|
|
||||||
|
|
||||||
FCKLang['DlgMyFindTitle'] = 'Plugin - Find' ;
|
|
||||||
FCKLang['DlgMyFindFindBtn'] = 'Find' ;
|
|
@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* French language file for the sample plugin.
|
|
||||||
*/
|
|
||||||
|
|
||||||
FCKLang['DlgMyReplaceTitle'] = 'Plugin - Remplacer' ;
|
|
||||||
FCKLang['DlgMyReplaceFindLbl'] = 'Chercher:' ;
|
|
||||||
FCKLang['DlgMyReplaceReplaceLbl'] = 'Remplacer par:' ;
|
|
||||||
FCKLang['DlgMyReplaceCaseChk'] = 'Respecter la casse' ;
|
|
||||||
FCKLang['DlgMyReplaceReplaceBtn'] = 'Remplacer' ;
|
|
||||||
FCKLang['DlgMyReplaceReplAllBtn'] = 'Remplacer Tout' ;
|
|
||||||
FCKLang['DlgMyReplaceWordChk'] = 'Mot entier' ;
|
|
||||||
|
|
||||||
FCKLang['DlgMyFindTitle'] = 'Plugin - Chercher' ;
|
|
||||||
FCKLang['DlgMyFindFindBtn'] = 'Chercher' ;
|
|
@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Italian language file for the sample plugin.
|
|
||||||
*/
|
|
||||||
|
|
||||||
FCKLang['DlgMyReplaceTitle'] = 'Plugin - Sostituisci' ;
|
|
||||||
FCKLang['DlgMyReplaceFindLbl'] = 'Trova:' ;
|
|
||||||
FCKLang['DlgMyReplaceReplaceLbl'] = 'Sostituisci con:' ;
|
|
||||||
FCKLang['DlgMyReplaceCaseChk'] = 'Maiuscole/minuscole' ;
|
|
||||||
FCKLang['DlgMyReplaceReplaceBtn'] = 'Sostituisci' ;
|
|
||||||
FCKLang['DlgMyReplaceReplAllBtn'] = 'Sostituisci tutto' ;
|
|
||||||
FCKLang['DlgMyReplaceWordChk'] = 'Parola intera' ;
|
|
||||||
|
|
||||||
FCKLang['DlgMyFindTitle'] = 'Plugin - Cerca' ;
|
|
||||||
FCKLang['DlgMyFindFindBtn'] = 'Cerca' ;
|
|
Binary file not shown.
Before Width: | Height: | Size: 326 B |
@ -1,135 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This is the sample "Replace" plugin window.
|
|
||||||
-->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta content="noindex, nofollow" name="robots">
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
var oEditor = window.parent.InnerDialogLoaded() ;
|
|
||||||
|
|
||||||
function OnLoad()
|
|
||||||
{
|
|
||||||
// First of all, translate the dialog box texts
|
|
||||||
oEditor.FCKLanguageManager.TranslatePage( document ) ;
|
|
||||||
|
|
||||||
window.parent.SetAutoSize( true ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function btnStat(frm)
|
|
||||||
{
|
|
||||||
document.getElementById('btnReplace').disabled =
|
|
||||||
document.getElementById('btnReplaceAll').disabled =
|
|
||||||
( document.getElementById('txtFind').value.length == 0 ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll, hasFound )
|
|
||||||
{
|
|
||||||
for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
|
|
||||||
{
|
|
||||||
var oNode = parentNode.childNodes[i] ;
|
|
||||||
if ( oNode.nodeType == 3 )
|
|
||||||
{
|
|
||||||
var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ;
|
|
||||||
if ( oNode.nodeValue != sReplaced )
|
|
||||||
{
|
|
||||||
oNode.nodeValue = sReplaced ;
|
|
||||||
if ( ! replaceAll )
|
|
||||||
return true ;
|
|
||||||
hasFound = true ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
hasFound = ReplaceTextNodes( oNode, regex, replaceValue, replaceAll, hasFound ) ;
|
|
||||||
if ( ! replaceAll && hasFound )
|
|
||||||
return true ;
|
|
||||||
}
|
|
||||||
|
|
||||||
return hasFound ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function GetRegexExpr()
|
|
||||||
{
|
|
||||||
if ( document.getElementById('chkWord').checked )
|
|
||||||
var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ;
|
|
||||||
else
|
|
||||||
var sExpr = document.getElementById('txtFind').value ;
|
|
||||||
|
|
||||||
return sExpr ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function GetCase()
|
|
||||||
{
|
|
||||||
return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Replace()
|
|
||||||
{
|
|
||||||
var oRegex = new RegExp( GetRegexExpr(), GetCase() ) ;
|
|
||||||
ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, false ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ReplaceAll()
|
|
||||||
{
|
|
||||||
var oRegex = new RegExp( GetRegexExpr(), GetCase() + 'g' ) ;
|
|
||||||
ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, true ) ;
|
|
||||||
window.parent.Cancel() ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
|
|
||||||
<div align="center">
|
|
||||||
This is my Plugin!
|
|
||||||
</div>
|
|
||||||
<table cellSpacing="3" cellPadding="2" width="100%" border="0">
|
|
||||||
<tr>
|
|
||||||
<td noWrap><label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label>
|
|
||||||
</td>
|
|
||||||
<td width="100%"><input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text">
|
|
||||||
</td>
|
|
||||||
<td><input id="btnReplace" style="WIDTH: 100%" disabled onclick="Replace();" type="button"
|
|
||||||
value="Replace" fckLang="DlgMyReplaceReplaceBtn">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td vAlign="top" nowrap><label for="txtReplace" fckLang="DlgMyReplaceReplaceLbl">Replace
|
|
||||||
with:</label>
|
|
||||||
</td>
|
|
||||||
<td vAlign="top"><input id="txtReplace" style="WIDTH: 100%" tabIndex="2" type="text">
|
|
||||||
</td>
|
|
||||||
<td><input id="btnReplaceAll" disabled onclick="ReplaceAll()" type="button" value="Replace All"
|
|
||||||
fckLang="DlgMyReplaceReplAllBtn">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td vAlign="bottom" colSpan="3"> <input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match
|
|
||||||
case</label>
|
|
||||||
<br>
|
|
||||||
<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match
|
|
||||||
whole word</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,73 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This is a sample plugin definition file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Here we define our custom Style combo, with custom widths.
|
|
||||||
var oMyBigStyleCombo = new FCKToolbarStyleCombo() ;
|
|
||||||
oMyBigStyleCombo.FieldWidth = 250 ;
|
|
||||||
oMyBigStyleCombo.PanelWidth = 300 ;
|
|
||||||
FCKToolbarItems.RegisterItem( 'My_BigStyle', oMyBigStyleCombo ) ;
|
|
||||||
|
|
||||||
|
|
||||||
// ##### Defining a custom context menu entry.
|
|
||||||
|
|
||||||
// ## 1. Define the command to be executed when selecting the context menu item.
|
|
||||||
var oMyCMCommand = new Object() ;
|
|
||||||
oMyCMCommand.Name = 'OpenImage' ;
|
|
||||||
|
|
||||||
// This is the standard function used to execute the command (called when clicking in the context menu item).
|
|
||||||
oMyCMCommand.Execute = function()
|
|
||||||
{
|
|
||||||
// This command is called only when an image element is selected (IMG).
|
|
||||||
// Get image URL (src).
|
|
||||||
var sUrl = FCKSelection.GetSelectedElement().src ;
|
|
||||||
|
|
||||||
// Open the URL in a new window.
|
|
||||||
window.top.open( sUrl ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is the standard function used to retrieve the command state (it could be disabled for some reason).
|
|
||||||
oMyCMCommand.GetState = function()
|
|
||||||
{
|
|
||||||
// Let's make it always enabled.
|
|
||||||
return FCK_TRISTATE_OFF ;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ## 2. Register our custom command.
|
|
||||||
FCKCommands.RegisterCommand( 'OpenImage', oMyCMCommand ) ;
|
|
||||||
|
|
||||||
// ## 3. Define the context menu "listener".
|
|
||||||
var oMyContextMenuListener = new Object() ;
|
|
||||||
|
|
||||||
// This is the standard function called right before sowing the context menu.
|
|
||||||
oMyContextMenuListener.AddItems = function( contextMenu, tag, tagName )
|
|
||||||
{
|
|
||||||
// Let's show our custom option only for images.
|
|
||||||
if ( tagName == 'IMG' )
|
|
||||||
{
|
|
||||||
contextMenu.AddSeparator() ;
|
|
||||||
contextMenu.AddItem( 'OpenImage', 'Open image in a new window (Custom)' ) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ## 4. Register our context menu listener.
|
|
||||||
FCK.ContextMenu.RegisterListener( oMyContextMenuListener ) ;
|
|
@ -1,34 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<application xmlns="http://ns.adobe.com/air/application/1.0">
|
|
||||||
<id>net.fckeditor.air.samples.sample01</id>
|
|
||||||
<name>FCKeditor Sample Application 1.0</name>
|
|
||||||
<version>1.0</version>
|
|
||||||
<filename>FCKeditor AIR Sample</filename>
|
|
||||||
<description>This is a sample AIR application including FCKeditor.</description>
|
|
||||||
<copyright>Copyright (C) 2003-2008 Frederico Caldeira Knabben</copyright>
|
|
||||||
<initialWindow>
|
|
||||||
<content>_samples/adobeair/sample01.html</content>
|
|
||||||
<title>FCKeditor AIR Sample</title>
|
|
||||||
<systemChrome>standard</systemChrome>
|
|
||||||
<transparent>false</transparent>
|
|
||||||
<visible>true</visible>
|
|
||||||
<minimizable>true</minimizable>
|
|
||||||
<maximizable>true</maximizable>
|
|
||||||
<resizable>true</resizable>
|
|
||||||
<x>100</x>
|
|
||||||
<y>80</y>
|
|
||||||
<width>820</width>
|
|
||||||
<height>600</height>
|
|
||||||
<minSize>600 400</minSize>
|
|
||||||
</initialWindow>
|
|
||||||
<installFolder>FCKeditor/AIR Samples/Sample01</installFolder>
|
|
||||||
<programMenuFolder>FCKeditor/AIR Samples</programMenuFolder>
|
|
||||||
<icon>
|
|
||||||
<image16x16>_samples/adobeair/icons/16.png</image16x16>
|
|
||||||
<image32x32>_samples/adobeair/icons/32.png</image32x32>
|
|
||||||
<image48x48>_samples/adobeair/icons/48.png</image48x48>
|
|
||||||
<image128x128>_samples/adobeair/icons/128.png</image128x128>
|
|
||||||
</icon>
|
|
||||||
<customUpdateUI>false</customUpdateUI>
|
|
||||||
<allowBrowserInvocation>false</allowBrowserInvocation>
|
|
||||||
</application>
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 273 B |
Binary file not shown.
Before Width: | Height: | Size: 562 B |
Binary file not shown.
Before Width: | Height: | Size: 563 B |
@ -1,26 +0,0 @@
|
|||||||
@ECHO OFF
|
|
||||||
|
|
||||||
::
|
|
||||||
:: FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
:: Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
::
|
|
||||||
:: == BEGIN LICENSE ==
|
|
||||||
::
|
|
||||||
:: Licensed under the terms of any of the following licenses at your
|
|
||||||
:: choice:
|
|
||||||
::
|
|
||||||
:: - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
:: http://www.gnu.org/licenses/gpl.html
|
|
||||||
::
|
|
||||||
:: - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
:: http://www.gnu.org/licenses/lgpl.html
|
|
||||||
::
|
|
||||||
:: - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
:: http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
::
|
|
||||||
:: == END LICENSE ==
|
|
||||||
::
|
|
||||||
|
|
||||||
:: adt -package SIGNING_OPTIONS air_file app_xml [file_or_dir | -C dir file_or_dir | -e file dir ...] ...
|
|
||||||
|
|
||||||
"C:\Adobe AIR SDK\bin\adt" -package -storetype pkcs12 -keystore sample01_cert.pfx -storepass 123abc FCKeditor.air application.xml -C ../../ .
|
|
@ -1,26 +0,0 @@
|
|||||||
@ECHO OFF
|
|
||||||
|
|
||||||
::
|
|
||||||
:: FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
:: Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
::
|
|
||||||
:: == BEGIN LICENSE ==
|
|
||||||
::
|
|
||||||
:: Licensed under the terms of any of the following licenses at your
|
|
||||||
:: choice:
|
|
||||||
::
|
|
||||||
:: - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
:: http://www.gnu.org/licenses/gpl.html
|
|
||||||
::
|
|
||||||
:: - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
:: http://www.gnu.org/licenses/lgpl.html
|
|
||||||
::
|
|
||||||
:: - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
:: http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
::
|
|
||||||
:: == END LICENSE ==
|
|
||||||
::
|
|
||||||
|
|
||||||
:: adl [-runtime runtime-directory] [-pubId publisher-id] [-nodebug] application.xml [rootdirectory] [-- arguments]
|
|
||||||
|
|
||||||
"C:\Adobe AIR SDK\bin\adl" application.xml ../../
|
|
@ -1,58 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample Adobe AIR application.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Adobe AIR Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<style type="text/css">
|
|
||||||
body { margin: 10px ; }
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - Adobe AIR Sample
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
This sample loads FCKeditor with full features enabled.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Height = 400 ;
|
|
||||||
oFCKeditor.Value = '<p>FCKeditor is in the <strong>AIR</strong>!<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
<application ID="fck"/>
|
|
@ -1,165 +0,0 @@
|
|||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This is the class definition file for the sample pages.
|
|
||||||
*
|
|
||||||
|
|
||||||
DEFINE CLASS fckeditor AS custom
|
|
||||||
cInstanceName =""
|
|
||||||
BasePath =""
|
|
||||||
cWIDTH =""
|
|
||||||
cHEIGHT =""
|
|
||||||
ToolbarSet =""
|
|
||||||
cValue=""
|
|
||||||
DIMENSION aConfig(10,2)
|
|
||||||
|
|
||||||
&& -----------------------------------------------------------------------
|
|
||||||
FUNCTION fckeditor( tcInstanceName )
|
|
||||||
LOCAL lnLoop,lnLoop2
|
|
||||||
THIS.cInstanceName = tcInstanceName
|
|
||||||
THIS.BasePath = '../../../FCKeditor/'
|
|
||||||
THIS.cWIDTH = '100%'
|
|
||||||
THIS.cHEIGHT = '200'
|
|
||||||
THIS.ToolbarSet = 'Default'
|
|
||||||
THIS.cValue = ''
|
|
||||||
FOR lnLoop=1 TO 10
|
|
||||||
FOR lnLoop2=1 TO 2
|
|
||||||
THIS.aConfig(lnLoop,lnLoop2) = ""
|
|
||||||
NEXT
|
|
||||||
NEXT
|
|
||||||
RETURN
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
|
|
||||||
&& -----------------------------------------------------------------------
|
|
||||||
FUNCTION CREATE()
|
|
||||||
RETURN(THIS.CreateHtml())
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
&& -----------------------------------------------------------------------
|
|
||||||
FUNCTION CreateHtml()
|
|
||||||
LOCAL html
|
|
||||||
LOCAL lcLink
|
|
||||||
|
|
||||||
HtmlValue = THIS.cValue && HTMLSPECIALCHARS()
|
|
||||||
|
|
||||||
html = [<div>]
|
|
||||||
IF THIS.IsCompatible()
|
|
||||||
lcLink = THIS.BasePath+[editor/fckeditor.html?InstanceName=]+THIS.cInstanceName
|
|
||||||
|
|
||||||
IF ( !THIS.ToolbarSet == '' )
|
|
||||||
lcLink = lcLink + [&Toolbar=]+THIS.ToolbarSet
|
|
||||||
ENDIF
|
|
||||||
|
|
||||||
&& Render the LINKED HIDDEN FIELD.
|
|
||||||
html = html + [<input type="hidden" id="]+THIS.cInstanceName +[" name="]+THIS.cInstanceName +[" value="]+HtmlValue+[">]
|
|
||||||
|
|
||||||
&& Render the configurations HIDDEN FIELD.
|
|
||||||
html = html + [<input type="hidden" id="]+THIS.cInstanceName +[___Config" value="]+THIS.GetConfigFieldString() + [">] +CHR(13)+CHR(10)
|
|
||||||
|
|
||||||
&& Render the EDITOR IFRAME.
|
|
||||||
html = html + [<iframe id="]+THIS.cInstanceName +[___Frame" src="]+lcLink+[" width="]+THIS.cWIDTH+[" height="]+THIS.cHEIGHT+[" frameborder="no" scrolling="no"></iframe>]
|
|
||||||
ELSE
|
|
||||||
IF ( AT("%", THIS.cWIDTH)=0 )
|
|
||||||
WidthCSS = THIS.cWIDTH + 'px'
|
|
||||||
ELSE
|
|
||||||
WidthCSS = THIS.cWIDTH
|
|
||||||
ENDIF
|
|
||||||
|
|
||||||
IF ( AT("%",THIS.cHEIGHT)=0 )
|
|
||||||
HeightCSS = THIS.cHEIGHT + 'px'
|
|
||||||
ELSE
|
|
||||||
HeightCSS = THIS.cHEIGHT
|
|
||||||
ENDIF
|
|
||||||
|
|
||||||
html = html + [<textarea name="]+THIS.cInstanceName +[" rows="4" cols="40" style="width: ]+WidthCSS+[ height: ]+HeightCSS+[" wrap="virtual">]+HtmlValue+[</textarea>]
|
|
||||||
ENDIF
|
|
||||||
|
|
||||||
html = html + [</div>]
|
|
||||||
|
|
||||||
RETURN (html)
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
|
|
||||||
&& -----------------------------------------------------------------------
|
|
||||||
FUNCTION IsCompatible()
|
|
||||||
LOCAL llRetval
|
|
||||||
LOCAL sAgent
|
|
||||||
|
|
||||||
llRetval=.F.
|
|
||||||
|
|
||||||
sAgent= LOWER(Request.ServerVariables("HTTP_USER_AGENT"))
|
|
||||||
|
|
||||||
IF AT("msie",sAgent) >0 .AND. AT("mac",sAgent)=0 .AND. AT("opera",sAgent)=0
|
|
||||||
iVersion=VAL(SUBSTR(sAgent,AT("msie",sAgent)+5,3))
|
|
||||||
llRetval= iVersion > 5.5
|
|
||||||
ELSE
|
|
||||||
IF AT("gecko",sAgent)>0
|
|
||||||
iVersion=VAL(SUBSTR(sAgent,AT("gecko/",sAgent)+6,8))
|
|
||||||
llRetval =iVersion > 20030210
|
|
||||||
ENDIF
|
|
||||||
ENDIF
|
|
||||||
RETURN (llRetval)
|
|
||||||
ENDFUNC
|
|
||||||
|
|
||||||
&& -----------------------------------------------------------------------
|
|
||||||
FUNCTION GetConfigFieldString()
|
|
||||||
LOCAL sParams
|
|
||||||
LOCAL bFirst
|
|
||||||
LOCAL sKey
|
|
||||||
sParams = ""
|
|
||||||
bFirst = .T.
|
|
||||||
FOR lnLoop=1 TO 10 && ALEN(this.aconfig)
|
|
||||||
IF !EMPTY(THIS.aConfig(lnLoop,1))
|
|
||||||
IF bFirst = .F.
|
|
||||||
sParams = sParams + "&"
|
|
||||||
ELSE
|
|
||||||
bFirst = .F.
|
|
||||||
ENDIF
|
|
||||||
sParams = sParams +THIS.aConfig(lnLoop,1)+[=]+THIS.aConfig(lnLoop,2)
|
|
||||||
ELSE
|
|
||||||
EXIT
|
|
||||||
ENDIF
|
|
||||||
NEXT
|
|
||||||
RETURN(sParams)
|
|
||||||
ENDFUNC
|
|
||||||
&& -----------------------------------------------------------------------
|
|
||||||
&& This function removes unwanted characters in URL parameters mostly entered by hackers
|
|
||||||
|
|
||||||
FUNCTION StripAttacks
|
|
||||||
LPARAMETERS tcString
|
|
||||||
IF !EMPTY(tcString)
|
|
||||||
tcString=STRTRAN(tcString,"&","")
|
|
||||||
tcString=STRTRAN(tcString,"?","")
|
|
||||||
tcString=STRTRAN(tcString,";","")
|
|
||||||
tcString=STRTRAN(tcString,"!","")
|
|
||||||
tcString=STRTRAN(tcString,"<%","")
|
|
||||||
tcString=STRTRAN(tcString,"%>","")
|
|
||||||
tcString=STRTRAN(tcString,"<","")
|
|
||||||
tcString=STRTRAN(tcString,">","")
|
|
||||||
tcString=STRTRAN(tcString,"..","")
|
|
||||||
tcString=STRTRAN(tcString,"/","")
|
|
||||||
tcString=STRTRAN(tcString,"\","")
|
|
||||||
tcString=STRTRAN(tcString,":","")
|
|
||||||
ELSE
|
|
||||||
tcString=""
|
|
||||||
ENDIF
|
|
||||||
RETURN (tcString)
|
|
||||||
|
|
||||||
ENDDEFINE
|
|
@ -1,56 +0,0 @@
|
|||||||
<%
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page lists the data posted by a form.
|
|
||||||
*
|
|
||||||
%>
|
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - AFP Sample 1</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - AFP - Sample 1</h1>
|
|
||||||
This sample displays a normal HTML form with an FCKeditor with full features enabled.
|
|
||||||
<hr>
|
|
||||||
<form action="sampleposteddata.afp" method="post" target="_blank">
|
|
||||||
<%
|
|
||||||
|
|
||||||
sBasePath="../../../fckeditor/" && Change this to your local path
|
|
||||||
|
|
||||||
lcText=[<p>This is some <strong>sample text</strong>. You are using ]
|
|
||||||
lcText=lcText+[<a href='http://www.fckeditor.net/'>FCKeditor</a>.]
|
|
||||||
|
|
||||||
oFCKeditor = CREATEOBJECT("FCKeditor")
|
|
||||||
oFCKeditor.fckeditor("FCKeditor1")
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
oFCKeditor.cValue = lcText
|
|
||||||
|
|
||||||
? oFCKeditor.Create()
|
|
||||||
|
|
||||||
%>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,113 +0,0 @@
|
|||||||
<%
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page is a basic Sample for FCKeditor integration in the AFP script language (www.afpages.de)
|
|
||||||
*
|
|
||||||
%>
|
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - AFP Sample 2</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbLanguages' ) ;
|
|
||||||
for ( code in editorInstance.Language.AvailableLanguages )
|
|
||||||
{
|
|
||||||
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
|
|
||||||
}
|
|
||||||
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function AddComboOption(combo, optionText, optionValue)
|
|
||||||
{
|
|
||||||
var oOption = document.createElement("OPTION") ;
|
|
||||||
|
|
||||||
combo.options.add(oOption) ;
|
|
||||||
|
|
||||||
oOption.innerHTML = optionText ;
|
|
||||||
oOption.value = optionValue ;
|
|
||||||
|
|
||||||
return oOption ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - AFP - Sample 2</h1>
|
|
||||||
This sample shows the editor in all its available languages.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select a language:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.afp" method="post" target="_blank">
|
|
||||||
<%
|
|
||||||
|
|
||||||
sBasePath="../../../fckeditor/" && Change this to your local path
|
|
||||||
|
|
||||||
oFCKeditor = CREATEOBJECT("FCKeditor")
|
|
||||||
oFCKeditor.fckeditor("FCKeditor1")
|
|
||||||
|
|
||||||
lcLanguage="" && Initialize Variable
|
|
||||||
lcLanguage=request.querystring("Lang") && Request Parameter
|
|
||||||
lcLanguage=oFCKeditor.StripAttacks(lcLanguage) && Remove special escape characters
|
|
||||||
IF EMPTY(lcLanguage)
|
|
||||||
oFCKeditor.aconfig[1,1]="AutoDetectLanguage"
|
|
||||||
oFCKeditor.aconfig[1,2]="true"
|
|
||||||
oFCKeditor.aconfig[2,1]="DefaultLanguage"
|
|
||||||
oFCKeditor.aconfig[2,2]="en"
|
|
||||||
ELSE
|
|
||||||
oFCKeditor.aconfig[1,1]="AutoDetectLanguage"
|
|
||||||
oFCKeditor.aconfig[1,2]="false"
|
|
||||||
oFCKeditor.aconfig[2,1]="DefaultLanguage"
|
|
||||||
oFCKeditor.aconfig[2,2]=lcLanguage
|
|
||||||
ENDIF
|
|
||||||
|
|
||||||
lcText=[<p>This is some <strong>sample text</strong>. You are using ]
|
|
||||||
lcText=lcText+[<a href='http://www.fckeditor.net/'>FCKeditor</a>.]
|
|
||||||
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
oFCKeditor.cValue = lcText
|
|
||||||
|
|
||||||
? oFCKeditor.Create()
|
|
||||||
|
|
||||||
%>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,91 +0,0 @@
|
|||||||
<%
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page is a basic Sample for FCKeditor integration in the AFP script language (www.afpages.de)
|
|
||||||
*
|
|
||||||
%>
|
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - AFP Sample 3</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbToolbars' ) ;
|
|
||||||
oCombo.value = editorInstance.ToolbarSet.Name ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeToolbar( toolbarName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - AFP - Sample 3</h1>
|
|
||||||
This sample shows how to change the editor toolbar.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the toolbar to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="Default" selected>Default</option>
|
|
||||||
<option value="Basic">Basic</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.afp" method="post" target="_blank">
|
|
||||||
<%
|
|
||||||
|
|
||||||
sBasePath="../../../fckeditor/" && Change this to your local path
|
|
||||||
|
|
||||||
oFCKeditor = CREATEOBJECT("FCKeditor")
|
|
||||||
oFCKeditor.fckeditor("FCKeditor1")
|
|
||||||
|
|
||||||
lcToolbar=request.querystring("Toolbar") && Request Parameter
|
|
||||||
lcToolbar=oFCKeditor.StripAttacks(lcToolbar) && Remove special escape characters
|
|
||||||
IF !EMPTY(lcToolbar)
|
|
||||||
oFCKeditor.ToolbarSet=lcToolbar
|
|
||||||
ENDIF
|
|
||||||
|
|
||||||
lcText=[<p>This is some <strong>sample text</strong>. You are using ]
|
|
||||||
lcText=lcText+[<a href='http://www.fckeditor.net/'>FCKeditor</a>.]
|
|
||||||
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
oFCKeditor.cValue = lcText
|
|
||||||
|
|
||||||
? oFCKeditor.Create()
|
|
||||||
|
|
||||||
%>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,98 +0,0 @@
|
|||||||
<%
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page is a basic Sample for FCKeditor integration in the AFP script language (www.afpages.de)
|
|
||||||
*
|
|
||||||
%>
|
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - AFP Sample 4</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbSkins' ) ;
|
|
||||||
|
|
||||||
// Get the active skin.
|
|
||||||
var sSkin = editorInstance.Config['SkinPath'] ;
|
|
||||||
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
|
|
||||||
|
|
||||||
oCombo.value = sSkin ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeSkin( skinName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Skin=" + skinName ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - AFP - Sample 4</h1>
|
|
||||||
This sample shows how to change the editor skin.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the skin to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="default" selected>Default</option>
|
|
||||||
<option value="office2003">Office 2003</option>
|
|
||||||
<option value="silver">Silver</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.afp" method="post" target="_blank">
|
|
||||||
<%
|
|
||||||
|
|
||||||
sBasePath="../../../fckeditor/" && <-- Change this to your local path
|
|
||||||
|
|
||||||
oFCKeditor = CREATEOBJECT("FCKeditor")
|
|
||||||
oFCKeditor.fckeditor("FCKeditor1")
|
|
||||||
|
|
||||||
lcSkin=request.querystring("Skin") && Request Parameter
|
|
||||||
lcSkin=oFCKeditor.StripAttacks(lcSkin) && Remove special escape characters
|
|
||||||
IF !EMPTY(lcSkin)
|
|
||||||
oFCKeditor.aconfig[1,1]="SkinPath"
|
|
||||||
oFCKeditor.aconfig[1,2]="/fckeditor/editor/skins/"+lcSkin+"/" && <-- Change this to your local path
|
|
||||||
ENDIF
|
|
||||||
|
|
||||||
lcText=[<p>This is some <strong>sample text</strong>. You are using ]
|
|
||||||
lcText=lcText+[<a href='http://www.fckeditor.net/'>FCKeditor</a>.]
|
|
||||||
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
oFCKeditor.cValue = lcText
|
|
||||||
|
|
||||||
? oFCKeditor.Create()
|
|
||||||
|
|
||||||
%>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,63 +0,0 @@
|
|||||||
<%
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page lists the data posted by a form.
|
|
||||||
*
|
|
||||||
%>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - AFP - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Samples - Posted Data</h1>
|
|
||||||
This page lists all data posted by the form.
|
|
||||||
<hr>
|
|
||||||
<table border="1" cellspacing="0" id="outputSample">
|
|
||||||
<colgroup><col width="80"><col></colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Field Name</th>
|
|
||||||
<th>Value</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<%
|
|
||||||
lcForm=REQUEST.Form()
|
|
||||||
lcForm=STRTRAN(lcForm,"&",CHR(13)+CHR(10))
|
|
||||||
|
|
||||||
FOR lnLoop=1 TO MEMLINES(lcForm)
|
|
||||||
lcZeile=ALLTRIM(MLINE(lcForm,lnLoop))
|
|
||||||
IF AT("=",lcZeile)>0
|
|
||||||
lcVariable=UPPER(ALLTRIM(LEFT(lcZeile,AT("=",lcZeile)-1)))
|
|
||||||
lcWert=ALLTRIM(RIGHT(lcZeile,LEN(lcZeile)-AT("=",lcZeile)))
|
|
||||||
lcWert=Server.UrlDecode( lcWert )
|
|
||||||
lcWert=STRTRAN(lcWert,"<","<")
|
|
||||||
lcWert=STRTRAN(lcWert,">",">") && ... if wanted remove/translate HTML Chars ...
|
|
||||||
|
|
||||||
? [<tr><th>]+lcVariable+[ =</th><td><pre>]+lcWert+[</pre></td></tr>]
|
|
||||||
ENDIF
|
|
||||||
NEXT
|
|
||||||
%>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||||||
<%@ codepage="65001" language="VBScript" %>
|
|
||||||
<% Option Explicit %>
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
|
|
||||||
<!-- #INCLUDE file="../../fckeditor.asp" -->
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - ASP - Sample 1
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
This sample displays a normal HTML form with an FCKeditor with full features enabled.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="sampleposteddata.asp" method="post" target="_blank">
|
|
||||||
<%
|
|
||||||
' Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
' This is usefull only for these samples. A real application should use something like this:
|
|
||||||
' oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
Dim sBasePath
|
|
||||||
sBasePath = Request.ServerVariables("PATH_INFO")
|
|
||||||
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
|
|
||||||
|
|
||||||
Dim oFCKeditor
|
|
||||||
Set oFCKeditor = New FCKeditor
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
|
|
||||||
oFCKeditor.Create "FCKeditor1"
|
|
||||||
%>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,108 +0,0 @@
|
|||||||
<%@ CodePage=65001 Language="VBScript"%>
|
|
||||||
<% Option Explicit %>
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
|
|
||||||
<!-- #INCLUDE file="../../fckeditor.asp" -->
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbLanguages' ) ;
|
|
||||||
for ( code in editorInstance.Language.AvailableLanguages )
|
|
||||||
{
|
|
||||||
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
|
|
||||||
}
|
|
||||||
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function AddComboOption(combo, optionText, optionValue)
|
|
||||||
{
|
|
||||||
var oOption = document.createElement("OPTION") ;
|
|
||||||
|
|
||||||
combo.options.add(oOption) ;
|
|
||||||
|
|
||||||
oOption.innerHTML = optionText ;
|
|
||||||
oOption.value = optionValue ;
|
|
||||||
|
|
||||||
return oOption ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ASP - Sample 2</h1>
|
|
||||||
This sample shows the editor in all its available languages.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select a language:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.asp" method="post" target="_blank">
|
|
||||||
<%
|
|
||||||
' Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
' This is usefull only for these samples. A real application should use something like this:
|
|
||||||
' oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
Dim sBasePath
|
|
||||||
sBasePath = Request.ServerVariables("PATH_INFO")
|
|
||||||
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
|
|
||||||
|
|
||||||
Dim oFCKeditor
|
|
||||||
Set oFCKeditor = New FCKeditor
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
|
|
||||||
If Request.QueryString("Lang") = "" Then
|
|
||||||
oFCKeditor.Config("AutoDetectLanguage") = True
|
|
||||||
oFCKeditor.Config("DefaultLanguage") = "en"
|
|
||||||
Else
|
|
||||||
oFCKeditor.Config("AutoDetectLanguage") = False
|
|
||||||
oFCKeditor.Config("DefaultLanguage") = Request.QueryString("Lang")
|
|
||||||
End If
|
|
||||||
|
|
||||||
oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
|
|
||||||
oFCKeditor.Create "FCKeditor1"
|
|
||||||
%>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,92 +0,0 @@
|
|||||||
<%@ CodePage=65001 Language="VBScript"%>
|
|
||||||
<% Option Explicit %>
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
|
|
||||||
<!-- #INCLUDE file="../../fckeditor.asp" -->
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbToolbars' ) ;
|
|
||||||
oCombo.value = editorInstance.ToolbarSet.Name ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeToolbar( toolbarName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ASP - Sample 3</h1>
|
|
||||||
This sample shows how to change the editor toolbar.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the toolbar to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="Default" selected>Default</option>
|
|
||||||
<option value="Basic">Basic</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.asp" method="post" target="_blank">
|
|
||||||
<%
|
|
||||||
' Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
' This is usefull only for these samples. A real application should use something like this:
|
|
||||||
' oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
Dim sBasePath
|
|
||||||
sBasePath = Request.ServerVariables("PATH_INFO")
|
|
||||||
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
|
|
||||||
|
|
||||||
Dim oFCKeditor
|
|
||||||
Set oFCKeditor = New FCKeditor
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
|
|
||||||
If Request.QueryString("Toolbar") <> "" Then
|
|
||||||
oFCKeditor.ToolbarSet = Server.HTMLEncode( Request.QueryString("Toolbar") )
|
|
||||||
End If
|
|
||||||
|
|
||||||
oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
|
|
||||||
oFCKeditor.Create "FCKeditor1"
|
|
||||||
%>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,98 +0,0 @@
|
|||||||
<%@ CodePage=65001 Language="VBScript"%>
|
|
||||||
<% Option Explicit %>
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
|
|
||||||
<!-- #INCLUDE file="../../fckeditor.asp" -->
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbSkins' ) ;
|
|
||||||
|
|
||||||
// Get the active skin.
|
|
||||||
var sSkin = editorInstance.Config['SkinPath'] ;
|
|
||||||
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
|
|
||||||
|
|
||||||
oCombo.value = sSkin ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeSkin( skinName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Skin=" + skinName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ASP - Sample 4</h1>
|
|
||||||
This sample shows how to change the editor skin.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the skin to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="default" selected>Default</option>
|
|
||||||
<option value="office2003">Office 2003</option>
|
|
||||||
<option value="silver">Silver</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.asp" method="post" target="_blank">
|
|
||||||
<%
|
|
||||||
' Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
' This is usefull only for these samples. A real application should use something like this:
|
|
||||||
' oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
Dim sBasePath
|
|
||||||
sBasePath = Request.ServerVariables("PATH_INFO")
|
|
||||||
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
|
|
||||||
|
|
||||||
Dim oFCKeditor
|
|
||||||
Set oFCKeditor = New FCKeditor
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
|
|
||||||
If Request.QueryString("Skin") <> "" Then
|
|
||||||
oFCKeditor.Config("SkinPath") = sBasePath + "editor/skins/" & Server.HTMLEncode( Request.QueryString("Skin") ) + "/"
|
|
||||||
End If
|
|
||||||
|
|
||||||
oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
|
|
||||||
oFCKeditor.Create "FCKeditor1"
|
|
||||||
%>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,56 +0,0 @@
|
|||||||
<%@ CodePage=65001 Language="VBScript"%>
|
|
||||||
<% Option Explicit %>
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page lists the data posted by a form.
|
|
||||||
-->
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" >
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Samples - Posted Data</h1>
|
|
||||||
This page lists all data posted by the form.
|
|
||||||
<hr>
|
|
||||||
<table border="1" cellspacing="0" id="outputSample">
|
|
||||||
<colgroup><col width="80"><col></colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Field Name</th>
|
|
||||||
<th>Value</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<%
|
|
||||||
Dim sForm
|
|
||||||
For Each sForm in Request.Form
|
|
||||||
%>
|
|
||||||
<tr>
|
|
||||||
<th><%=sForm%></th>
|
|
||||||
<td><pre><%=Server.HTMLEncode( Request.Form(sForm) )%></pre></td>
|
|
||||||
</tr>
|
|
||||||
<% Next %>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,63 +0,0 @@
|
|||||||
<cfsetting enablecfoutputonly="true">
|
|
||||||
<!---
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page for ColdFusion.
|
|
||||||
--->
|
|
||||||
|
|
||||||
<cfoutput>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ColdFusion - Sample 1</h1>
|
|
||||||
|
|
||||||
This sample displays a normal HTML form with a FCKeditor with full features enabled.
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<form method="POST" action="sampleposteddata.cfm">
|
|
||||||
</cfoutput>
|
|
||||||
|
|
||||||
<!--- Calculate basepath for FCKeditor. It's in the folder right above _samples --->
|
|
||||||
<cfset basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 )>
|
|
||||||
|
|
||||||
<cfmodule
|
|
||||||
template="../../fckeditor.cfm"
|
|
||||||
basePath="#basePath#"
|
|
||||||
instanceName="myEditor"
|
|
||||||
value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
|
|
||||||
width="100%"
|
|
||||||
height="200"
|
|
||||||
>
|
|
||||||
|
|
||||||
<cfoutput>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
<hr />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</cfoutput>
|
|
||||||
<cfsetting enablecfoutputonly="false">
|
|
@ -1,67 +0,0 @@
|
|||||||
<cfsetting enablecfoutputonly="true">
|
|
||||||
<!---
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page for ColdFusion MX 6.0 and above.
|
|
||||||
--->
|
|
||||||
|
|
||||||
<cfoutput>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ColdFusion Component (CFC) - Sample 1</h1>
|
|
||||||
|
|
||||||
This sample displays a normal HTML form with a FCKeditor with full features enabled.
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<form method="POST" action="sampleposteddata.cfm">
|
|
||||||
</cfoutput>
|
|
||||||
|
|
||||||
<cfif listFirst( server.coldFusion.productVersion ) LT 6>
|
|
||||||
<cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>
|
|
||||||
<cfabort>
|
|
||||||
</cfif>
|
|
||||||
|
|
||||||
<cfscript>
|
|
||||||
// Calculate basepath for FCKeditor. It's in the folder right above _samples
|
|
||||||
basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 ) ;
|
|
||||||
|
|
||||||
fckEditor = createObject( "component", "#basePath#fckeditor" ) ;
|
|
||||||
fckEditor.instanceName = "myEditor" ;
|
|
||||||
fckEditor.value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
fckEditor.basePath = basePath ;
|
|
||||||
fckEditor.Create() ; // create the editor.
|
|
||||||
</cfscript>
|
|
||||||
|
|
||||||
<cfoutput>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
<hr />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</cfoutput>
|
|
||||||
<cfsetting enablecfoutputonly="false">
|
|
@ -1,110 +0,0 @@
|
|||||||
<cfsetting enablecfoutputonly="true">
|
|
||||||
<!---
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page for ColdFusion.
|
|
||||||
--->
|
|
||||||
|
|
||||||
<cfoutput>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbLanguages' ) ;
|
|
||||||
for ( code in editorInstance.Language.AvailableLanguages )
|
|
||||||
{
|
|
||||||
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
|
|
||||||
}
|
|
||||||
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function AddComboOption(combo, optionText, optionValue)
|
|
||||||
{
|
|
||||||
var oOption = document.createElement("OPTION") ;
|
|
||||||
|
|
||||||
combo.options.add(oOption) ;
|
|
||||||
|
|
||||||
oOption.innerHTML = optionText ;
|
|
||||||
oOption.value = optionValue ;
|
|
||||||
|
|
||||||
return oOption ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ColdFusion - Sample 2</h1>
|
|
||||||
This sample shows the editor in all its available languages.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select a language:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cfm" method="post" target="_blank">
|
|
||||||
</cfoutput>
|
|
||||||
|
|
||||||
<cfset config = structNew()>
|
|
||||||
<cfif isDefined( "URL.Lang" )>
|
|
||||||
<cfset config["AutoDetectLanguage"] = false>
|
|
||||||
<cfset config["DefaultLanguage"] = HTMLEditFormat( URL.Lang )>
|
|
||||||
<cfelse>
|
|
||||||
<cfset config["AutoDetectLanguage"] = true>
|
|
||||||
<cfset config["DefaultLanguage"] = 'en'>
|
|
||||||
</cfif>
|
|
||||||
|
|
||||||
<!--- Calculate basepath for FCKeditor. It's in the folder right above _samples --->
|
|
||||||
<cfset basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 )>
|
|
||||||
|
|
||||||
<cfmodule
|
|
||||||
template="../../fckeditor.cfm"
|
|
||||||
basePath="#basePath#"
|
|
||||||
instanceName="myEditor"
|
|
||||||
value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
|
|
||||||
width="100%"
|
|
||||||
height="200"
|
|
||||||
config="#config#"
|
|
||||||
>
|
|
||||||
<cfoutput>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</cfoutput>
|
|
||||||
<cfsetting enablecfoutputonly="false">
|
|
@ -1,114 +0,0 @@
|
|||||||
<cfsetting enablecfoutputonly="true">
|
|
||||||
<!---
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page for ColdFusion MX 6.0 and above.
|
|
||||||
--->
|
|
||||||
|
|
||||||
<cfoutput>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbLanguages' ) ;
|
|
||||||
for ( code in editorInstance.Language.AvailableLanguages )
|
|
||||||
{
|
|
||||||
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
|
|
||||||
}
|
|
||||||
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function AddComboOption(combo, optionText, optionValue)
|
|
||||||
{
|
|
||||||
var oOption = document.createElement("OPTION") ;
|
|
||||||
|
|
||||||
combo.options.add(oOption) ;
|
|
||||||
|
|
||||||
oOption.innerHTML = optionText ;
|
|
||||||
oOption.value = optionValue ;
|
|
||||||
|
|
||||||
return oOption ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ColdFusion Component (CFC) - Sample 2</h1>
|
|
||||||
This sample shows the editor in all its available languages.
|
|
||||||
<hr>
|
|
||||||
</cfoutput>
|
|
||||||
<cfif listFirst( server.coldFusion.productVersion ) LT 6>
|
|
||||||
<cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>
|
|
||||||
<cfabort>
|
|
||||||
</cfif>
|
|
||||||
<cfoutput>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select a language:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cfm" method="post" target="_blank">
|
|
||||||
</cfoutput>
|
|
||||||
<cfscript>
|
|
||||||
// Calculate basepath for FCKeditor. It's in the folder right above _samples
|
|
||||||
basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 ) ;
|
|
||||||
|
|
||||||
fckEditor = createObject( "component", "#basePath#fckeditor" ) ;
|
|
||||||
fckEditor.instanceName = "myEditor" ;
|
|
||||||
fckEditor.value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
fckEditor.basePath = basePath ;
|
|
||||||
if ( isDefined( "URL.Lang" ) )
|
|
||||||
{
|
|
||||||
fckEditor.config["AutoDetectLanguage"] = false ;
|
|
||||||
fckEditor.config["DefaultLanguage"] = HTMLEditFormat( URL.Lang ) ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
fckEeditor.config["AutoDetectLanguage"] = true ;
|
|
||||||
fckEeditor.config["DefaultLanguage"] = 'en' ;
|
|
||||||
}
|
|
||||||
fckEditor.create() ; // create the editor.
|
|
||||||
</cfscript>
|
|
||||||
<cfoutput>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</cfoutput>
|
|
||||||
<cfsetting enablecfoutputonly="false">
|
|
@ -1,95 +0,0 @@
|
|||||||
<cfsetting enablecfoutputonly="true">
|
|
||||||
<!---
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page for ColdFusion.
|
|
||||||
--->
|
|
||||||
<cfoutput>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbToolbars' ) ;
|
|
||||||
oCombo.value = editorInstance.ToolbarSet.Name ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeToolbar( toolbarName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ColdFusion - Sample 3</h1>
|
|
||||||
This sample shows how to change the editor toolbar.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the toolbar to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="Default" selected>Default</option>
|
|
||||||
<option value="Basic">Basic</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cfm" method="post" target="_blank">
|
|
||||||
</cfoutput>
|
|
||||||
|
|
||||||
<cfif isDefined( "URL.Toolbar" )>
|
|
||||||
<cfset toolbarSet = HTMLEditFormat( URL.Toolbar )>
|
|
||||||
<cfelse>
|
|
||||||
<cfset toolbarSet = "Default">
|
|
||||||
</cfif>
|
|
||||||
|
|
||||||
<!--- Calculate basepath for FCKeditor. It's in the folder right above _samples --->
|
|
||||||
<cfset basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 )>
|
|
||||||
|
|
||||||
<cfmodule
|
|
||||||
template="../../fckeditor.cfm"
|
|
||||||
basePath="#basePath#"
|
|
||||||
instanceName="myEditor"
|
|
||||||
value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
|
|
||||||
width="100%"
|
|
||||||
height="200"
|
|
||||||
toolbarSet="#toolbarSet#"
|
|
||||||
>
|
|
||||||
|
|
||||||
<cfoutput>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</cfoutput>
|
|
||||||
<cfsetting enablecfoutputonly="false">
|
|
@ -1,95 +0,0 @@
|
|||||||
<cfsetting enablecfoutputonly="true">
|
|
||||||
<!---
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page for ColdFusion MX 6.0 and above.
|
|
||||||
--->
|
|
||||||
<cfoutput>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbToolbars' ) ;
|
|
||||||
oCombo.value = editorInstance.ToolbarSet.Name ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeToolbar( toolbarName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ColdFusion Component (CFC) - Sample 3</h1>
|
|
||||||
This sample shows how to change the editor toolbar.
|
|
||||||
<hr>
|
|
||||||
</cfoutput>
|
|
||||||
<cfif listFirst( server.coldFusion.productVersion ) LT 6>
|
|
||||||
<cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>
|
|
||||||
<cfabort>
|
|
||||||
</cfif>
|
|
||||||
<cfoutput>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the toolbar to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="Default" selected>Default</option>
|
|
||||||
<option value="Basic">Basic</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cfm" method="post" target="_blank">
|
|
||||||
</cfoutput>
|
|
||||||
<cfscript>
|
|
||||||
// Calculate basepath for FCKeditor. It's in the folder right above _samples
|
|
||||||
basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 ) ;
|
|
||||||
|
|
||||||
fckEditor = createObject( "component", "#basePath#fckeditor" ) ;
|
|
||||||
fckEditor.instanceName = "myEditor" ;
|
|
||||||
fckEditor.value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
fckEditor.basePath = basePath ;
|
|
||||||
if ( isDefined( "URL.Toolbar" ) )
|
|
||||||
{
|
|
||||||
fckEditor.ToolbarSet = HTMLEditFormat( URL.Toolbar ) ;
|
|
||||||
}
|
|
||||||
fckEditor.create() ; // create the editor.
|
|
||||||
</cfscript>
|
|
||||||
<cfoutput>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</cfoutput>
|
|
||||||
<cfsetting enablecfoutputonly="false">
|
|
@ -1,100 +0,0 @@
|
|||||||
<cfsetting enablecfoutputonly="true">
|
|
||||||
<!---
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page for ColdFusion.
|
|
||||||
--->
|
|
||||||
<cfoutput>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbSkins' ) ;
|
|
||||||
|
|
||||||
// Get the active skin.
|
|
||||||
var sSkin = editorInstance.Config['SkinPath'] ;
|
|
||||||
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
|
|
||||||
|
|
||||||
oCombo.value = sSkin ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeSkin( skinName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Skin=" + skinName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ColdFusion - Sample 4</h1>
|
|
||||||
This sample shows how to change the editor skin.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the skin to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="default" selected>Default</option>
|
|
||||||
<option value="office2003">Office 2003</option>
|
|
||||||
<option value="silver">Silver</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cfm" method="post" target="_blank">
|
|
||||||
</cfoutput>
|
|
||||||
|
|
||||||
<!--- Calculate basepath for FCKeditor. It's in the folder right above _samples --->
|
|
||||||
<cfset basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 )>
|
|
||||||
|
|
||||||
<cfset config = structNew()>
|
|
||||||
<cfif isDefined( "URL.Skin" )>
|
|
||||||
<cfset config["SkinPath"] = basePath & 'editor/skins/' & HTMLEditFormat( URL.Skin ) & '/'>
|
|
||||||
</cfif>
|
|
||||||
|
|
||||||
<cfmodule
|
|
||||||
template="../../fckeditor.cfm"
|
|
||||||
basePath="#basePath#"
|
|
||||||
instanceName="myEditor"
|
|
||||||
value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
|
|
||||||
width="100%"
|
|
||||||
height="200"
|
|
||||||
config="#config#"
|
|
||||||
>
|
|
||||||
|
|
||||||
<cfoutput>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</cfoutput>
|
|
||||||
<cfsetting enablecfoutputonly="false">
|
|
@ -1,101 +0,0 @@
|
|||||||
<cfsetting enablecfoutputonly="true">
|
|
||||||
<!---
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page for ColdFusion MX 6.0 and above.
|
|
||||||
--->
|
|
||||||
<cfoutput>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbSkins' ) ;
|
|
||||||
|
|
||||||
// Get the active skin.
|
|
||||||
var sSkin = editorInstance.Config['SkinPath'] ;
|
|
||||||
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
|
|
||||||
|
|
||||||
oCombo.value = sSkin ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeSkin( skinName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Skin=" + skinName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - ColdFusion Component (CFC) - Sample 4</h1>
|
|
||||||
This sample shows how to change the editor skin.
|
|
||||||
<hr>
|
|
||||||
</cfoutput>
|
|
||||||
<cfif listFirst( server.coldFusion.productVersion ) LT 6>
|
|
||||||
<cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>
|
|
||||||
<cfabort>
|
|
||||||
</cfif>
|
|
||||||
<cfoutput>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the skin to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="default" selected>Default</option>
|
|
||||||
<option value="office2003">Office 2003</option>
|
|
||||||
<option value="silver">Silver</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cfm" method="post" target="_blank">
|
|
||||||
</cfoutput>
|
|
||||||
<cfscript>
|
|
||||||
// Calculate basepath for FCKeditor. It's in the folder right above _samples
|
|
||||||
basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 ) ;
|
|
||||||
|
|
||||||
fckEditor = createObject( "component", "#basePath#fckeditor" ) ;
|
|
||||||
fckEditor.instanceName = "myEditor" ;
|
|
||||||
fckEditor.value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
fckEditor.basePath = basePath ;
|
|
||||||
if ( isDefined( "URL.Skin" ) )
|
|
||||||
{
|
|
||||||
fckEditor.config['SkinPath'] = basePath & 'editor/skins/' & HTMLEditFormat( URL.Skin ) & '/' ;
|
|
||||||
}
|
|
||||||
fckEditor.create() ; // create the editor.
|
|
||||||
</cfscript>
|
|
||||||
<cfoutput>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</cfoutput>
|
|
||||||
<cfsetting enablecfoutputonly="false">
|
|
@ -1,68 +0,0 @@
|
|||||||
<!---
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page lists the data posted by a form.
|
|
||||||
*/
|
|
||||||
--->
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Samples - Posted Data</h1>
|
|
||||||
This page lists all data posted by the form.
|
|
||||||
<hr>
|
|
||||||
<cfif listFirst( server.coldFusion.productVersion ) LT 6>
|
|
||||||
<cfif isDefined( 'FORM.fieldnames' )>
|
|
||||||
<cfoutput>
|
|
||||||
<hr />
|
|
||||||
<table border="1" cellspacing="0" id="outputSample">
|
|
||||||
<colgroup><col width="80"><col></colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Field Name</th>
|
|
||||||
<th>Value</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tr>
|
|
||||||
<th>FieldNames</th>
|
|
||||||
<td>#FORM.fieldNames#</td>
|
|
||||||
</tr>
|
|
||||||
<cfloop list="#FORM.fieldnames#" index="key">
|
|
||||||
<tr>
|
|
||||||
<th>#key#</th>
|
|
||||||
<td><pre>#HTMLEditFormat( evaluate( "FORM.#key#" ) )#</pre></td>
|
|
||||||
</tr>
|
|
||||||
</cfloop>
|
|
||||||
</table>
|
|
||||||
</cfoutput>
|
|
||||||
</cfif>
|
|
||||||
<cfelse>
|
|
||||||
<cfdump var="#FORM#" label="Dump of FORM Variables">
|
|
||||||
</cfif>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,35 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
|
|
||||||
"http://www.w3.org/TR/html4/frameset.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Samples Frameset page.
|
|
||||||
-->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
</head>
|
|
||||||
<frameset rows="60,*">
|
|
||||||
<frame src="sampleslist.html" noresize scrolling="no">
|
|
||||||
<frame name="Sample" src="html/sample01.html" noresize>
|
|
||||||
</frameset>
|
|
||||||
</html>
|
|
@ -1,59 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 1
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
This sample displays a normal HTML form with an FCKeditor with full features enabled.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Height = 300 ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,63 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
window.onload = function()
|
|
||||||
{
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.ReplaceTextarea() ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 2</h1>
|
|
||||||
<div>
|
|
||||||
This sample displays a normal HTML form with an FCKeditor with full features enabled.
|
|
||||||
It uses the "ReplaceTextarea" command to create the editor.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<div>
|
|
||||||
<textarea name="FCKeditor1" rows="10" cols="80" style="width: 100%; height: 200px"><p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p></textarea>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,140 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
var bIsLoaded = false ;
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
if ( bIsLoaded )
|
|
||||||
return ;
|
|
||||||
|
|
||||||
var oCombo = document.getElementById( 'cmbLanguages' ) ;
|
|
||||||
|
|
||||||
// Remove all options. (#1399)
|
|
||||||
oCombo.innerHTML = '' ;
|
|
||||||
|
|
||||||
var aLanguages = new Array() ;
|
|
||||||
|
|
||||||
for ( code in editorInstance.Language.AvailableLanguages )
|
|
||||||
aLanguages.push( { Code : code, Name : editorInstance.Language.AvailableLanguages[code] } ) ;
|
|
||||||
|
|
||||||
aLanguages.sort( SortLanguage ) ;
|
|
||||||
|
|
||||||
for ( var i = 0 ; i < aLanguages.length ; i++ )
|
|
||||||
AddComboOption( oCombo, aLanguages[i].Name + ' (' + aLanguages[i].Code + ')', aLanguages[i].Code ) ;
|
|
||||||
|
|
||||||
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
|
|
||||||
|
|
||||||
document.getElementById('eNumLangs').innerHTML = '(' + aLanguages.length + ' languages available!)' ;
|
|
||||||
|
|
||||||
bIsLoaded = true ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function SortLanguage( langA, langB )
|
|
||||||
{
|
|
||||||
return ( langA.Name < langB.Name ? -1 : langA.Name > langB.Name ? 1 : 0 ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function AddComboOption(combo, optionText, optionValue)
|
|
||||||
{
|
|
||||||
var oOption = document.createElement("OPTION") ;
|
|
||||||
|
|
||||||
combo.options.add(oOption) ;
|
|
||||||
|
|
||||||
oOption.innerHTML = optionText ;
|
|
||||||
oOption.value = optionValue ;
|
|
||||||
|
|
||||||
return oOption ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 3</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows the editor in all its available languages.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select a language:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
|
|
||||||
<option> </option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<span id="eNumLangs"></span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var sLang ;
|
|
||||||
if ( document.location.search.length > 1 )
|
|
||||||
sLang = document.location.search.substr(1) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
if ( sLang == null )
|
|
||||||
{
|
|
||||||
oFCKeditor.Config["AutoDetectLanguage"] = true ;
|
|
||||||
oFCKeditor.Config["DefaultLanguage"] = "en" ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
oFCKeditor.Config["AutoDetectLanguage"] = false ;
|
|
||||||
oFCKeditor.Config["DefaultLanguage"] = sLang ;
|
|
||||||
}
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,95 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbToolbars' ) ;
|
|
||||||
oCombo.value = editorInstance.ToolbarSet.Name ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 4</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows how to change the editor toolbar.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the toolbar to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbToolbars" onchange="ChangeLanguage(this.value);" style="visibility: hidden">
|
|
||||||
<option value="Default" selected="selected">Default</option>
|
|
||||||
<option value="Basic">Basic</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
// Get the toolbar from the URL.
|
|
||||||
var sToolbar ;
|
|
||||||
if ( document.location.search.length > 1 )
|
|
||||||
sToolbar = document.location.search.substr(1) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
|
|
||||||
if ( sToolbar != null )
|
|
||||||
oFCKeditor.ToolbarSet = sToolbar ;
|
|
||||||
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,125 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbSkins' ) ;
|
|
||||||
|
|
||||||
// Get the active skin.
|
|
||||||
var sSkin = editorInstance.Config['SkinPath'] ;
|
|
||||||
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
|
|
||||||
|
|
||||||
oCombo.value = sSkin ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 5</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows how to change the editor skin.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the skin to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbSkins" onchange="ChangeLanguage(this.value);" style="visibility: hidden">
|
|
||||||
<option value="default" selected="selected">Default</option>
|
|
||||||
<option value="office2003">Office 2003</option>
|
|
||||||
<option value="silver">Silver</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
// Get the skin from the URL.
|
|
||||||
var sSkin ;
|
|
||||||
if ( document.location.search.length > 1 )
|
|
||||||
sSkin = document.location.search.substr(1) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
|
|
||||||
if ( sSkin != null )
|
|
||||||
{
|
|
||||||
var sSkinPath = sBasePath + 'editor/skins/' + sSkin + '/' ;
|
|
||||||
oFCKeditor.Config['SkinPath'] = sSkinPath ;
|
|
||||||
|
|
||||||
// The following switch is optional. It is done to enhance the loading
|
|
||||||
// time of the toolbar, by preloading the images used on it.
|
|
||||||
switch ( sSkin )
|
|
||||||
{
|
|
||||||
case 'office2003' :
|
|
||||||
oFCKeditor.Config['PreloadImages'] =
|
|
||||||
sSkinPath + 'images/toolbar.start.gif' + ';' +
|
|
||||||
sSkinPath + 'images/toolbar.end.gif' + ';' +
|
|
||||||
sSkinPath + 'images/toolbar.bg.gif' + ';' +
|
|
||||||
sSkinPath + 'images/toolbar.buttonarrow.gif' ;
|
|
||||||
break ;
|
|
||||||
|
|
||||||
case 'silver' :
|
|
||||||
oFCKeditor.Config['PreloadImages'] =
|
|
||||||
sSkinPath + 'images/toolbar.start.gif' + ';' +
|
|
||||||
sSkinPath + 'images/toolbar.end.gif' + ';' +
|
|
||||||
sSkinPath + 'images/toolbar.buttonbg.gif' + ';' +
|
|
||||||
sSkinPath + 'images/toolbar.buttonarrow.gif' ;
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,49 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample custom configuration settings used in the plugin sample page (sample06).
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Set our sample toolbar.
|
|
||||||
FCKConfig.ToolbarSets['PluginTest'] = [
|
|
||||||
['SourceSimple'],
|
|
||||||
['My_Find','My_Replace','-','Placeholder'],
|
|
||||||
['StyleSimple','FontFormatSimple','FontNameSimple','FontSizeSimple'],
|
|
||||||
['Table','-','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableCellProp'],
|
|
||||||
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink'],
|
|
||||||
'/',
|
|
||||||
['My_BigStyle','-','Smiley','-','About']
|
|
||||||
] ;
|
|
||||||
|
|
||||||
// Change the default plugin path.
|
|
||||||
FCKConfig.PluginsPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + '_samples/_plugins/' ;
|
|
||||||
|
|
||||||
// Add our plugin to the plugins list.
|
|
||||||
// FCKConfig.Plugins.Add( pluginName, availableLanguages )
|
|
||||||
// pluginName: The plugin name. The plugin directory must match this name.
|
|
||||||
// availableLanguages: a list of available language files for the plugin (separated by a comma).
|
|
||||||
FCKConfig.Plugins.Add( 'findreplace', 'en,fr,it' ) ;
|
|
||||||
FCKConfig.Plugins.Add( 'samples' ) ;
|
|
||||||
|
|
||||||
// If you want to use plugins found on other directories, just use the third parameter.
|
|
||||||
var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
|
|
||||||
FCKConfig.Plugins.Add( 'placeholder', 'de,en,es,fr,it,pl', sOtherPluginPath ) ;
|
|
||||||
FCKConfig.Plugins.Add( 'tablecommands', null, sOtherPluginPath ) ;
|
|
||||||
FCKConfig.Plugins.Add( 'simplecommands', null, sOtherPluginPath ) ;
|
|
@ -1,73 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - 6</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows some sample plugins implementations. Things to note:<br />
|
|
||||||
<ul>
|
|
||||||
<li>In the toolbar, you will find sample "Find" and "Replace" plugins that do exactly
|
|
||||||
the same thing that the built in ones do. It just shows how to do that with a custom
|
|
||||||
implementation. Use the green toolbar buttons the test then. </li>
|
|
||||||
<li>There is also another sample plugin that is available in the package: the "Placeholder"
|
|
||||||
command (use the yellow icon). </li>
|
|
||||||
<li>It also shows a custom context menu option when right cliking on images (insert
|
|
||||||
a smiley to test it).</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
|
|
||||||
// Set the custom configurations file path (in this way the original file is mantained).
|
|
||||||
oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/assets/sample06.config.js' ;
|
|
||||||
|
|
||||||
// Let's use a custom toolbar for this sample.
|
|
||||||
oFCKeditor.ToolbarSet = 'PluginTest' ;
|
|
||||||
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,59 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 7</h1>
|
|
||||||
<div>
|
|
||||||
In this sample the user can edit the complete page contents and header (from <HTML>
|
|
||||||
to </HTML>).
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Config['FullPage'] = true ;
|
|
||||||
oFCKeditor.Value = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Full Page Test<\/title><meta content="text/html; charset=utf-8" http-equiv="Content-Type"><\/head><body><p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.<\/body><\/html>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,196 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// FCKeditor_OnComplete is a special function that is called when an editor
|
|
||||||
// instance is loaded ad available to the API. It must be named exactly in
|
|
||||||
// this way.
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
// Show the editor name and description in the browser status bar.
|
|
||||||
document.getElementById('eMessage').innerHTML = 'Instance "' + editorInstance.Name + '" loaded - ' + editorInstance.Description ;
|
|
||||||
|
|
||||||
// Show this sample buttons.
|
|
||||||
document.getElementById('eButtons').style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function InsertHTML()
|
|
||||||
{
|
|
||||||
// Get the editor instance that we want to interact with.
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
|
|
||||||
|
|
||||||
// Check the active editing mode.
|
|
||||||
if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
|
|
||||||
{
|
|
||||||
// Insert the desired HTML.
|
|
||||||
oEditor.InsertHtml( '- This is some <a href="/Test1.html">sample<\/a> HTML -' ) ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
alert( 'You must be on WYSIWYG mode!' ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function SetContents()
|
|
||||||
{
|
|
||||||
// Get the editor instance that we want to interact with.
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
|
|
||||||
|
|
||||||
// Set the editor contents (replace the actual one).
|
|
||||||
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.' ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function GetContents()
|
|
||||||
{
|
|
||||||
// Get the editor instance that we want to interact with.
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
|
|
||||||
|
|
||||||
// Get the editor contents in XHTML.
|
|
||||||
alert( oEditor.GetXHTML( true ) ) ; // "true" means you want it formatted.
|
|
||||||
}
|
|
||||||
|
|
||||||
function ExecuteCommand( commandName )
|
|
||||||
{
|
|
||||||
// Get the editor instance that we want to interact with.
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
|
|
||||||
|
|
||||||
// Execute the command.
|
|
||||||
oEditor.Commands.GetCommand( commandName ).Execute() ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function GetLength()
|
|
||||||
{
|
|
||||||
// This functions shows that you can interact directly with the editor area
|
|
||||||
// DOM. In this way you have the freedom to do anything you want with it.
|
|
||||||
|
|
||||||
// Get the editor instance that we want to interact with.
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
|
|
||||||
|
|
||||||
// Get the Editor Area DOM (Document object).
|
|
||||||
var oDOM = oEditor.EditorDocument ;
|
|
||||||
|
|
||||||
var iLength ;
|
|
||||||
|
|
||||||
// The are two diffent ways to get the text (without HTML markups).
|
|
||||||
// It is browser specific.
|
|
||||||
|
|
||||||
if ( document.all ) // If Internet Explorer.
|
|
||||||
{
|
|
||||||
iLength = oDOM.body.innerText.length ;
|
|
||||||
}
|
|
||||||
else // If Gecko.
|
|
||||||
{
|
|
||||||
var r = oDOM.createRange() ;
|
|
||||||
r.selectNodeContents( oDOM.body ) ;
|
|
||||||
iLength = r.toString().length ;
|
|
||||||
}
|
|
||||||
|
|
||||||
alert( 'Actual text length (without HTML markups): ' + iLength + ' characters' ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function GetInnerHTML()
|
|
||||||
{
|
|
||||||
// Get the editor instance that we want to interact with.
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
|
|
||||||
|
|
||||||
alert( oEditor.EditorDocument.body.innerHTML ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function CheckIsDirty()
|
|
||||||
{
|
|
||||||
// Get the editor instance that we want to interact with.
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
|
|
||||||
alert( oEditor.IsDirty() ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ResetIsDirty()
|
|
||||||
{
|
|
||||||
// Get the editor instance that we want to interact with.
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
|
|
||||||
oEditor.ResetIsDirty() ;
|
|
||||||
alert( 'The "IsDirty" status has been reset' ) ;
|
|
||||||
}
|
|
||||||
-->
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 8
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows how to use the FCKeditor JavaScript API to interact with the editor
|
|
||||||
at runtime.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<div id="eMessage">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div id="eButtons" style="visibility: hidden">
|
|
||||||
<input type="button" value="Insert HTML" onclick="InsertHTML();" />
|
|
||||||
<input type="button" value="Set Editor Contents" onclick="SetContents();" />
|
|
||||||
<input type="button" value="Get Editor Contents (XHTML)" onclick="GetContents();" />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<input type="button" value='Execute "Bold" Command' onclick="ExecuteCommand('Bold');" />
|
|
||||||
<input type="button" value='Execute "Link" Command' onclick="ExecuteCommand('Link');" />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<input type="button" value="Interact with the Editor Area DOM" onclick="GetLength();" />
|
|
||||||
<input type="button" value="Get innerHTML" onclick="GetInnerHTML();" />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<input type="button" value="Check IsDirty()" onclick="CheckIsDirty();" />
|
|
||||||
<input type="button" value="Reset IsDirty()" onclick="ResetIsDirty();" />
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,100 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
editorInstance.Events.AttachEvent( 'OnBlur' , FCKeditor_OnBlur ) ;
|
|
||||||
editorInstance.Events.AttachEvent( 'OnFocus', FCKeditor_OnFocus ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function FCKeditor_OnBlur( editorInstance )
|
|
||||||
{
|
|
||||||
editorInstance.ToolbarSet.Collapse() ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function FCKeditor_OnFocus( editorInstance )
|
|
||||||
{
|
|
||||||
editorInstance.ToolbarSet.Expand() ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 9</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows FCKeditor in a more complex form with two different instances.<br />
|
|
||||||
It also shows and interesting usage of the "OnFocus" and "OnBlur" events available
|
|
||||||
in the JavaScript API.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
Normal text field:<br />
|
|
||||||
<input name="NormaText" value="Plain Text" />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
FCKeditor with Basic toolbar:
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor_Basic' ) ;
|
|
||||||
|
|
||||||
oFCKeditor.Config['ToolbarStartExpanded'] = false ;
|
|
||||||
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.ToolbarSet = 'Basic' ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
FCKeditor with Default toolbar:
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
oFCKeditor = new FCKeditor( 'FCKeditor_Default' ) ;
|
|
||||||
|
|
||||||
oFCKeditor.Config['ToolbarStartExpanded'] = false ;
|
|
||||||
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,79 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 10</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows a form with two FCKeditor instance. Both instances share the same
|
|
||||||
toolbar, available in the top.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<div id="xToolbar"></div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
Normal text field:<br />
|
|
||||||
<input name="NormaText" value="Plain Text" />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
FCKeditor 1:
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Height = 100 ;
|
|
||||||
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
FCKeditor 2:
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Height = 100 ;
|
|
||||||
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,43 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 11</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows a form with two FCKeditor instance loaded inside an IFRAME. Both instances share the same
|
|
||||||
toolbar, available in the main page (top).
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<div id="xToolbar"></div>
|
|
||||||
<hr />
|
|
||||||
<iframe src="assets/sample11_frame.html" width="100%" height="300"></iframe>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,69 +0,0 @@
|
|||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<form action="sampleposteddata.asp" method="post" target="_blank">
|
|
||||||
Normal text field:<br />
|
|
||||||
<input name="NormaText" value="Plain Text" />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
FCKeditor 1:
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Height = 100 ;
|
|
||||||
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
FCKeditor 2:
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Height = 100 ;
|
|
||||||
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,124 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// The following function is used in this samples to reload the page,
|
|
||||||
// setting the querystring parameters for the enter mode.
|
|
||||||
function ChangeMode()
|
|
||||||
{
|
|
||||||
var sEnterMode = document.getElementById('xEnter').value ;
|
|
||||||
var sShiftEnterMode = document.getElementById('xShiftEnter').value ;
|
|
||||||
|
|
||||||
window.location.href = window.location.pathname + '?enter=' + sEnterMode + '&shift=' + sShiftEnterMode ;
|
|
||||||
}
|
|
||||||
-->
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 12</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows the different ways to configure the [Enter] key behavior on FCKeditor.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
When [Enter] is pressed:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="xEnter" onchange="ChangeMode();">
|
|
||||||
<option value="p" selected="selected">Create new <P></option>
|
|
||||||
<option value="div">Create new <DIV></option>
|
|
||||||
<option value="br">Break the line with a <BR></option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
When [Shift] + [Enter] is pressed:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="xShiftEnter" onchange="ChangeMode();">
|
|
||||||
<option value="p">Create new <P></option>
|
|
||||||
<option value="div">Create new <DIV></option>
|
|
||||||
<option value="br" selected="selected">Break the line with a <BR></option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
// The following are the default configurations for the Enter and Shift+Enter modes.
|
|
||||||
var sEnterMode = 'p' ;
|
|
||||||
var sShiftEnterMode = 'br' ;
|
|
||||||
|
|
||||||
// Try to get the new configurations from the querystring, if available.
|
|
||||||
if ( document.location.search.length > 1 )
|
|
||||||
{
|
|
||||||
var aMatch = document.location.search.match( /enter=(p|div|br)/ ) ;
|
|
||||||
if ( aMatch )
|
|
||||||
sEnterMode = aMatch[1] ;
|
|
||||||
|
|
||||||
aMatch = document.location.search.match( /shift=(p|div|br)/ ) ;
|
|
||||||
if ( aMatch )
|
|
||||||
sShiftEnterMode = aMatch[1] ;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create the FCKeditor instance.
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Value = 'This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.' ;
|
|
||||||
|
|
||||||
// Set the configuration options for the Enter Key mode.
|
|
||||||
oFCKeditor.Config["EnterMode"] = sEnterMode ;
|
|
||||||
oFCKeditor.Config["ShiftEnterMode"] = sShiftEnterMode ;
|
|
||||||
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
|
|
||||||
// Update the select combos with the current values.
|
|
||||||
document.getElementById('xEnter').value = sEnterMode ;
|
|
||||||
document.getElementById('xShiftEnter').value = sShiftEnterMode ;
|
|
||||||
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,148 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function Toggle()
|
|
||||||
{
|
|
||||||
// Try to get the FCKeditor instance, if available.
|
|
||||||
var oEditor ;
|
|
||||||
if ( typeof( FCKeditorAPI ) != 'undefined' )
|
|
||||||
oEditor = FCKeditorAPI.GetInstance( 'DataFCKeditor' ) ;
|
|
||||||
|
|
||||||
// Get the _Textarea and _FCKeditor DIVs.
|
|
||||||
var eTextareaDiv = document.getElementById( 'Textarea' ) ;
|
|
||||||
var eFCKeditorDiv = document.getElementById( 'FCKeditor' ) ;
|
|
||||||
|
|
||||||
// If the _Textarea DIV is visible, switch to FCKeditor.
|
|
||||||
if ( eTextareaDiv.style.display != 'none' )
|
|
||||||
{
|
|
||||||
// If it is the first time, create the editor.
|
|
||||||
if ( !oEditor )
|
|
||||||
{
|
|
||||||
CreateEditor() ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Set the current text in the textarea to the editor.
|
|
||||||
oEditor.SetData( document.getElementById('DataTextarea').value ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Switch the DIVs display.
|
|
||||||
eTextareaDiv.style.display = 'none' ;
|
|
||||||
eFCKeditorDiv.style.display = '' ;
|
|
||||||
|
|
||||||
// This is a hack for Gecko 1.0.x ... it stops editing when the editor is hidden.
|
|
||||||
if ( oEditor && !document.all )
|
|
||||||
{
|
|
||||||
if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
|
|
||||||
oEditor.MakeEditable() ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Set the textarea value to the editor value.
|
|
||||||
document.getElementById('DataTextarea').value = oEditor.GetXHTML() ;
|
|
||||||
|
|
||||||
// Switch the DIVs display.
|
|
||||||
eTextareaDiv.style.display = '' ;
|
|
||||||
eFCKeditorDiv.style.display = 'none' ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function CreateEditor()
|
|
||||||
{
|
|
||||||
// Copy the value of the current textarea, to the textarea that will be used by the editor.
|
|
||||||
document.getElementById('DataFCKeditor').value = document.getElementById('DataTextarea').value ;
|
|
||||||
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
// Create an instance of FCKeditor (using the target textarea as the name).
|
|
||||||
var oFCKeditor = new FCKeditor( 'DataFCKeditor' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
oFCKeditor.Width = '100%' ;
|
|
||||||
oFCKeditor.Height = '350' ;
|
|
||||||
oFCKeditor.ReplaceTextarea() ;
|
|
||||||
}
|
|
||||||
|
|
||||||
// The FCKeditor_OnComplete function is a special function called everytime an
|
|
||||||
// editor instance is completely loaded and available for API interactions.
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
// Enable the switch button. It is disabled at startup, waiting the editor to be loaded.
|
|
||||||
document.getElementById('BtnSwitchTextarea').disabled = false ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function PrepareSave()
|
|
||||||
{
|
|
||||||
// If the textarea isn't visible update the content from the editor.
|
|
||||||
if ( document.getElementById( 'Textarea' ).style.display == 'none' )
|
|
||||||
{
|
|
||||||
var oEditor = FCKeditorAPI.GetInstance( 'DataFCKeditor' ) ;
|
|
||||||
document.getElementById( 'DataTextarea' ).value = oEditor.GetXHTML() ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 13
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
This sample starts with a normal textarea and provides the ability to switch back
|
|
||||||
and forth between the textarea and FCKeditor. It uses the JavaScript API to do the
|
|
||||||
operations so it will work even if the internal implementation changes.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank" onsubmit="PrepareSave();">
|
|
||||||
<div id="Textarea">
|
|
||||||
<input type="button" value="Switch to FCKeditor" onclick="Toggle()" />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<textarea id="DataTextarea" name="Data" cols="80" rows="20" style="width: 95%">This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</textarea>
|
|
||||||
</div>
|
|
||||||
<div id="FCKeditor" style="display: none">
|
|
||||||
<!-- Note that the following button is disabled at startup.
|
|
||||||
It will be enabled once the editor is completely loaded. -->
|
|
||||||
<input id="BtnSwitchTextarea" type="button" disabled="disabled" value="Switch to Textarea" onclick="Toggle()" />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<!-- Note that the following textarea doesn't have a "name", so it will not be posted. -->
|
|
||||||
<textarea id="DataFCKeditor" cols="80" rows="20"></textarea>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,121 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Configuration settings used by the XHTML 1.1 sample page (sample14.html).
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Our intention is force all formatting features to use CSS classes or
|
|
||||||
// semantic aware elements.
|
|
||||||
|
|
||||||
// Load our custom CSS files for this sample.
|
|
||||||
// We are using "BasePath" just for this sample convenience. In normal
|
|
||||||
// situations it would be just pointed to the file directly,
|
|
||||||
// like "/css/myfile.css".
|
|
||||||
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../_samples/html/sample14.styles.css' ;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Core styles.
|
|
||||||
*/
|
|
||||||
FCKConfig.CoreStyles.Bold = { Element : 'span', Attributes : { 'class' : 'Bold' } } ;
|
|
||||||
FCKConfig.CoreStyles.Italic = { Element : 'span', Attributes : { 'class' : 'Italic' } } ;
|
|
||||||
FCKConfig.CoreStyles.Underline = { Element : 'span', Attributes : { 'class' : 'Underline' } } ;
|
|
||||||
FCKConfig.CoreStyles.StrikeThrough = { Element : 'span', Attributes : { 'class' : 'StrikeThrough' } } ;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Font face
|
|
||||||
*/
|
|
||||||
// List of fonts available in the toolbar combo. Each font definition is
|
|
||||||
// separated by a semi-colon (;). We are using class names here, so each font
|
|
||||||
// is defined by {Class Name}/{Combo Label}.
|
|
||||||
FCKConfig.FontNames = 'FontComic/Comic Sans MS;FontCourier/Courier New;FontTimes/Times New Roman' ;
|
|
||||||
|
|
||||||
// Define the way font elements will be applied to the document. The "span"
|
|
||||||
// element will be used. When a font is selected, the font name defined in the
|
|
||||||
// above list is passed to this definition with the name "Font", being it
|
|
||||||
// injected in the "class" attribute.
|
|
||||||
// We must also instruct the editor to replace span elements that are used to
|
|
||||||
// set the font (Overrides).
|
|
||||||
FCKConfig.CoreStyles.FontFace =
|
|
||||||
{
|
|
||||||
Element : 'span',
|
|
||||||
Attributes : { 'class' : '#("Font")' },
|
|
||||||
Overrides : [ { Element : 'span', Attributes : { 'class' : /^Font(?:Comic|Courier|Times)$/ } } ]
|
|
||||||
} ;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Font sizes.
|
|
||||||
*/
|
|
||||||
FCKConfig.FontSizes = 'FontSmaller/Smaller;FontLarger/Larger;FontSmall/8pt;FontBig/14pt;FontDouble/Double Size' ;
|
|
||||||
FCKConfig.CoreStyles.Size =
|
|
||||||
{
|
|
||||||
Element : 'span',
|
|
||||||
Attributes : { 'class' : '#("Size")' },
|
|
||||||
Overrides : [ { Element : 'span', Attributes : { 'class' : /^Font(?:Smaller|Larger|Small|Big|Double)$/ } } ]
|
|
||||||
} ;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Font colors.
|
|
||||||
*/
|
|
||||||
FCKConfig.EnableMoreFontColors = false ;
|
|
||||||
FCKConfig.FontColors = 'ff9900/FontColor1,0066cc/FontColor2,ff0000/FontColor3' ;
|
|
||||||
FCKConfig.CoreStyles.Color =
|
|
||||||
{
|
|
||||||
Element : 'span',
|
|
||||||
Attributes : { 'class' : '#("Color")' },
|
|
||||||
Overrides : [ { Element : 'span', Attributes : { 'class' : /^FontColor(?:1|2|3)$/ } } ]
|
|
||||||
} ;
|
|
||||||
|
|
||||||
FCKConfig.CoreStyles.BackColor =
|
|
||||||
{
|
|
||||||
Element : 'span',
|
|
||||||
Attributes : { 'class' : '#("Color")BG' },
|
|
||||||
Overrides : [ { Element : 'span', Attributes : { 'class' : /^FontColor(?:1|2|3)BG$/ } } ]
|
|
||||||
} ;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Indentation.
|
|
||||||
*/
|
|
||||||
FCKConfig.IndentClasses = [ 'Indent1', 'Indent2', 'Indent3' ] ;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Paragraph justification.
|
|
||||||
*/
|
|
||||||
FCKConfig.JustifyClasses = [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ] ;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Styles combo.
|
|
||||||
*/
|
|
||||||
FCKConfig.StylesXmlPath = '' ;
|
|
||||||
FCKConfig.CustomStyles =
|
|
||||||
{
|
|
||||||
'Strong Emphasis' : { Element : 'strong' },
|
|
||||||
'Emphasis' : { Element : 'em' },
|
|
||||||
|
|
||||||
'Computer Code' : { Element : 'code' },
|
|
||||||
'Keyboard Phrase' : { Element : 'kbd' },
|
|
||||||
'Sample Text' : { Element : 'samp' },
|
|
||||||
'Variable' : { Element : 'var' },
|
|
||||||
|
|
||||||
'Deleted Text' : { Element : 'del' },
|
|
||||||
'Inserted Text' : { Element : 'ins' },
|
|
||||||
|
|
||||||
'Cited Work' : { Element : 'cite' },
|
|
||||||
'Inline Quotation' : { Element : 'q' }
|
|
||||||
} ;
|
|
@ -1,66 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript" src="../../fckeditor.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - JavaScript - Sample 14
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
This sample shows FCKeditor configured to produce <strong>XHTML 1.1</strong> compliant
|
|
||||||
HTML. Deprecated elements or attributes, like the <font> and <u> elements
|
|
||||||
or the "style" attribute, are avoided.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<form action="../php/sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
|
||||||
|
|
||||||
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
|
||||||
oFCKeditor.BasePath = sBasePath ;
|
|
||||||
|
|
||||||
// Instruct the editor to load our configurations from a custom file, leaving the
|
|
||||||
// original configuration file untouched.
|
|
||||||
oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/assets/sample14.config.js' ;
|
|
||||||
|
|
||||||
oFCKeditor.Height = 300 ;
|
|
||||||
oFCKeditor.Value = '<p>This is some <span class="Bold">sample text<\/span>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
|
|
||||||
oFCKeditor.Create() ;
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<br />
|
|
||||||
<input type="submit" value="Submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,228 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Styles used by the XHTML 1.1 sample page (sample14.html).
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Basic definitions for the editing area.
|
|
||||||
*/
|
|
||||||
body
|
|
||||||
{
|
|
||||||
background-color: #ffffff;
|
|
||||||
padding: 5px 5px 5px 5px;
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
body, td
|
|
||||||
{
|
|
||||||
font-family: Arial, Verdana, sans-serif;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
a[href]
|
|
||||||
{
|
|
||||||
color: #0000FF !important; /* For Firefox... mark as important, otherwise it becomes black */
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Core styles.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.Bold
|
|
||||||
{
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Italic
|
|
||||||
{
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Underline
|
|
||||||
{
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.StrikeThrough
|
|
||||||
{
|
|
||||||
text-decoration: line-through;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Subscript
|
|
||||||
{
|
|
||||||
vertical-align: sub;
|
|
||||||
font-size: smaller;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Superscript
|
|
||||||
{
|
|
||||||
vertical-align: super;
|
|
||||||
font-size: smaller;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Font faces.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.FontComic
|
|
||||||
{
|
|
||||||
font-family: 'Comic Sans MS';
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontCourier
|
|
||||||
{
|
|
||||||
font-family: 'Courier New';
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontTimes
|
|
||||||
{
|
|
||||||
font-family: 'Times New Roman';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Font sizes.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.FontSmaller
|
|
||||||
{
|
|
||||||
font-size: smaller;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontLarger
|
|
||||||
{
|
|
||||||
font-size: larger;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontSmall
|
|
||||||
{
|
|
||||||
font-size: 8pt;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontBig
|
|
||||||
{
|
|
||||||
font-size: 14pt;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontDouble
|
|
||||||
{
|
|
||||||
font-size: 200%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Font colors.
|
|
||||||
*/
|
|
||||||
.FontColor1
|
|
||||||
{
|
|
||||||
color: #ff9900;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontColor2
|
|
||||||
{
|
|
||||||
color: #0066cc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontColor3
|
|
||||||
{
|
|
||||||
color: #ff0000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontColor1BG
|
|
||||||
{
|
|
||||||
background-color: #ff9900;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontColor2BG
|
|
||||||
{
|
|
||||||
background-color: #0066cc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.FontColor3BG
|
|
||||||
{
|
|
||||||
background-color: #ff0000;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Indentation.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.Indent1
|
|
||||||
{
|
|
||||||
margin-left: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Indent2
|
|
||||||
{
|
|
||||||
margin-left: 80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Indent3
|
|
||||||
{
|
|
||||||
margin-left: 120px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Alignment.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.JustifyLeft
|
|
||||||
{
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JustifyRight
|
|
||||||
{
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JustifyCenter
|
|
||||||
{
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JustifyFull
|
|
||||||
{
|
|
||||||
text-align: justify;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Other.
|
|
||||||
*/
|
|
||||||
|
|
||||||
code
|
|
||||||
{
|
|
||||||
font-family: courier, monospace;
|
|
||||||
background-color: #eeeeee;
|
|
||||||
padding-left: 1px;
|
|
||||||
padding-right: 1px;
|
|
||||||
border: #c0c0c0 1px solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
kbd
|
|
||||||
{
|
|
||||||
padding: 0px 1px 0px 1px;
|
|
||||||
border-width: 1px 2px 2px 1px;
|
|
||||||
border-style: solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote
|
|
||||||
{
|
|
||||||
color: #808080;
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page lists the data posted by a form.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - Samples - Posted Data</h1>
|
|
||||||
<div>
|
|
||||||
This page lists all data posted by the form.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">
|
|
||||||
<tr style="font-weight: bold; color: #dddddd; background-color: #999999">
|
|
||||||
<td style="white-space: nowrap;">
|
|
||||||
Field Name </td>
|
|
||||||
<td>
|
|
||||||
Value</td>
|
|
||||||
</tr>
|
|
||||||
<% For Each sForm in Request.Form %>
|
|
||||||
<tr>
|
|
||||||
<td valign="top" style="white-space: nowrap;">
|
|
||||||
<b>
|
|
||||||
<%=sForm%>
|
|
||||||
</b>
|
|
||||||
</td>
|
|
||||||
<td style="width: 100%;">
|
|
||||||
<pre><%=ModifyForOutput( Request.Form(sForm) )%></pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<% Next %>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<%
|
|
||||||
|
|
||||||
' This function is useful only for this sample page se whe can display the
|
|
||||||
' posted data accordingly. This processing is usually not done on real
|
|
||||||
' applications, where the posted data must be saved on a DB or file. In those
|
|
||||||
' cases, no processing must be done, and the data is saved as posted.
|
|
||||||
Function ModifyForOutput( value )
|
|
||||||
|
|
||||||
ModifyForOutput = Server.HTMLEncode( value )
|
|
||||||
|
|
||||||
End Function
|
|
||||||
|
|
||||||
%>
|
|
@ -1,80 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page lists the data posted by a form. It uses the URL (GET data),
|
|
||||||
* so it's limited to 2KB of data.
|
|
||||||
-->
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
FCKeditor - Samples - Posted Data
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
This page lists all data posted by the form. It uses the "QueryString" to search
|
|
||||||
for data submitted using the "GET" method, so it is limited to 2KB.
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">
|
|
||||||
<tr style="font-weight: bold; color: #dddddd; background-color: #999999">
|
|
||||||
<td style="white-space: nowrap;">
|
|
||||||
Field</td>
|
|
||||||
<td>
|
|
||||||
Value</td>
|
|
||||||
</tr>
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
|
|
||||||
function HTMLEncode( text )
|
|
||||||
{
|
|
||||||
text = text.replace(/&/g, "&") ;
|
|
||||||
text = text.replace(/"/g, """) ;
|
|
||||||
text = text.replace(/</g, "<") ;
|
|
||||||
text = text.replace(/>/g, ">") ;
|
|
||||||
text = text.replace(/'/g, "'") ;
|
|
||||||
|
|
||||||
return text ;
|
|
||||||
}
|
|
||||||
|
|
||||||
var aParams = document.location.search.substr(1).split('&') ;
|
|
||||||
|
|
||||||
for ( i = 0 ; i < aParams.length ; i++ )
|
|
||||||
{
|
|
||||||
var aParam = aParams[i].split('=') ;
|
|
||||||
var sParamName = aParam[0] ;
|
|
||||||
var sParamValue = aParam[1] ;
|
|
||||||
|
|
||||||
document.write( '<tr>' ) ;
|
|
||||||
document.write( '<td valign="top" style="white-space: nowrap;">' + sParamName + '</td>' ) ;
|
|
||||||
document.write( '<td style="width: 100%;"><pre>' + HTMLEncode( decodeURIComponent( sParamValue.replace( /\+/g, ' ' ) ) ) + '</pre></td>' ) ;
|
|
||||||
document.write( '</tr>' ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,55 +0,0 @@
|
|||||||
[//lasso
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
]
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Lasso - Sample 1</h1>
|
|
||||||
This sample displays a normal HTML form with an FCKeditor with full features
|
|
||||||
enabled.
|
|
||||||
<hr>
|
|
||||||
<form action="sampleposteddata.lasso" method="post" target="_blank">
|
|
||||||
[//lasso
|
|
||||||
include('../../fckeditor.lasso');
|
|
||||||
var('basepath') = response_filepath->split('_samples')->get(1);
|
|
||||||
|
|
||||||
var('myeditor') = fck_editor(
|
|
||||||
-instancename='FCKeditor1',
|
|
||||||
-basepath=$basepath,
|
|
||||||
-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
|
|
||||||
);
|
|
||||||
|
|
||||||
$myeditor->create;
|
|
||||||
]
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,109 +0,0 @@
|
|||||||
[//lasso
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
]
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbLanguages' ) ;
|
|
||||||
for ( code in editorInstance.Language.AvailableLanguages )
|
|
||||||
{
|
|
||||||
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
|
|
||||||
}
|
|
||||||
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function AddComboOption(combo, optionText, optionValue)
|
|
||||||
{
|
|
||||||
var oOption = document.createElement("OPTION") ;
|
|
||||||
|
|
||||||
combo.options.add(oOption) ;
|
|
||||||
|
|
||||||
oOption.innerHTML = optionText ;
|
|
||||||
oOption.value = optionValue ;
|
|
||||||
|
|
||||||
return oOption ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
|
|
||||||
}
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Lasso - Sample 2</h1>
|
|
||||||
This sample shows the editor in all its available languages.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select a language:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.lasso" method="post" target="_blank">
|
|
||||||
[//lasso
|
|
||||||
include('../../fckeditor.lasso');
|
|
||||||
var('basepath') = response_filepath->split('_samples')->get(1);
|
|
||||||
|
|
||||||
if(action_param('Lang'));
|
|
||||||
var('config') = array(
|
|
||||||
'AutoDetectLanguage' = 'false',
|
|
||||||
'DefaultLanguage' = action_param('Lang')
|
|
||||||
);
|
|
||||||
else;
|
|
||||||
var('config') = array(
|
|
||||||
'AutoDetectLanguage' = 'true',
|
|
||||||
'DefaultLanguage' = 'en'
|
|
||||||
);
|
|
||||||
/if;
|
|
||||||
|
|
||||||
var('myeditor') = fck_editor(
|
|
||||||
-instancename='FCKeditor1',
|
|
||||||
-basepath=$basepath,
|
|
||||||
-config=$config,
|
|
||||||
-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
|
|
||||||
);
|
|
||||||
|
|
||||||
$myeditor->create;
|
|
||||||
]
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,87 +0,0 @@
|
|||||||
[//lasso
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
]
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbToolbars' ) ;
|
|
||||||
oCombo.value = editorInstance.ToolbarSet.Name ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeToolbar( toolbarName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
|
|
||||||
}
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Lasso - Sample 3</h1>
|
|
||||||
This sample shows how to change the editor toolbar.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the toolbar to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="Default" selected>Default</option>
|
|
||||||
<option value="Basic">Basic</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.lasso" method="post" target="_blank">
|
|
||||||
[//lasso
|
|
||||||
include('../../fckeditor.lasso');
|
|
||||||
var('basepath') = response_filepath->split('_samples')->get(1);
|
|
||||||
|
|
||||||
var('myeditor') = fck_editor(
|
|
||||||
-instancename='FCKeditor1',
|
|
||||||
-basepath=$basepath,
|
|
||||||
-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
|
|
||||||
);
|
|
||||||
|
|
||||||
if(action_param('Toolbar'));
|
|
||||||
$myeditor->toolbarset = action_param('Toolbar');
|
|
||||||
/if;
|
|
||||||
|
|
||||||
$myeditor->create;
|
|
||||||
]
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,93 +0,0 @@
|
|||||||
[//lasso
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
]
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbSkins' ) ;
|
|
||||||
|
|
||||||
// Get the active skin.
|
|
||||||
var sSkin = editorInstance.Config['SkinPath'] ;
|
|
||||||
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
|
|
||||||
|
|
||||||
oCombo.value = sSkin ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeSkin( skinName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Skin=" + skinName ;
|
|
||||||
}
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Lasso - Sample 4</h1>
|
|
||||||
This sample shows how to change the editor skin.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the skin to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="default" selected>Default</option>
|
|
||||||
<option value="office2003">Office 2003</option>
|
|
||||||
<option value="silver">Silver</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.lasso" method="post" target="_blank">
|
|
||||||
[//lasso
|
|
||||||
include('../../fckeditor.lasso');
|
|
||||||
var('basepath') = response_filepath->split('_samples')->get(1);
|
|
||||||
|
|
||||||
var('myeditor') = fck_editor(
|
|
||||||
-instancename='FCKeditor1',
|
|
||||||
-basepath=$basepath,
|
|
||||||
-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
|
|
||||||
);
|
|
||||||
|
|
||||||
if(action_param('Skin'));
|
|
||||||
$myeditor->config = array('SkinPath' = $basepath + 'editor/skins/' + action_param('Skin') + '/');
|
|
||||||
/if;
|
|
||||||
|
|
||||||
$myeditor->create;
|
|
||||||
]
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,53 +0,0 @@
|
|||||||
[//lasso
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
]
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Samples - Posted Data</h1>
|
|
||||||
This page lists all data posted by the form.
|
|
||||||
<hr>
|
|
||||||
<table border="1" cellspacing="0" id="outputSample">
|
|
||||||
<colgroup><col width="80"><col></colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Field Name</th>
|
|
||||||
<th>Value</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
[iterate(client_postparams, local('this'))]
|
|
||||||
<tr>
|
|
||||||
<th>[#this->first]</th>
|
|
||||||
<td><pre>[#this->second]</pre></td>
|
|
||||||
</tr>
|
|
||||||
[/iterate]
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,117 +0,0 @@
|
|||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
#####
|
|
||||||
# FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
# Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
#
|
|
||||||
# == BEGIN LICENSE ==
|
|
||||||
#
|
|
||||||
# Licensed under the terms of any of the following licenses at your
|
|
||||||
# choice:
|
|
||||||
#
|
|
||||||
# - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
# http://www.gnu.org/licenses/gpl.html
|
|
||||||
#
|
|
||||||
# - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
# http://www.gnu.org/licenses/lgpl.html
|
|
||||||
#
|
|
||||||
# - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
# http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
#
|
|
||||||
# == END LICENSE ==
|
|
||||||
#
|
|
||||||
# Sample page.
|
|
||||||
#####
|
|
||||||
|
|
||||||
## START: Hack for Windows (Not important to understand the editor code... Perl specific).
|
|
||||||
if(Windows_check()) {
|
|
||||||
chdir(GetScriptPath($0));
|
|
||||||
}
|
|
||||||
|
|
||||||
sub Windows_check
|
|
||||||
{
|
|
||||||
# IIS,PWS(NT/95)
|
|
||||||
$www_server_os = $^O;
|
|
||||||
# Win98 & NT(SP4)
|
|
||||||
if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
|
|
||||||
# AnHTTPd/Omni/IIS
|
|
||||||
if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
|
|
||||||
# Win Apache
|
|
||||||
if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
|
|
||||||
if($www_server_os=~ /win/i) { return(1); }
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
sub GetScriptPath {
|
|
||||||
local($path) = @_;
|
|
||||||
if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
|
|
||||||
$path;
|
|
||||||
}
|
|
||||||
## END: Hack for IIS
|
|
||||||
|
|
||||||
require '../../fckeditor.pl';
|
|
||||||
|
|
||||||
# When $ENV{'PATH_INFO'} cannot be used by perl.
|
|
||||||
# $DefRootPath = "/XXXXX/_samples/perl/sample01.cgi"; Please write in script.
|
|
||||||
|
|
||||||
my $DefServerPath = "";
|
|
||||||
my $ServerPath;
|
|
||||||
|
|
||||||
$ServerPath = &GetServerPath();
|
|
||||||
print "Content-type: text/html\n\n";
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Perl - Sample 1</h1>
|
|
||||||
This sample displays a normal HTML form with an FCKeditor with full features
|
|
||||||
enabled.
|
|
||||||
<hr>
|
|
||||||
<form action="sampleposteddata.cgi" method="post" target="_blank">
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
#// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
#// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
#// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
|
|
||||||
$sBasePath = $ServerPath;
|
|
||||||
$sBasePath = substr($sBasePath,0,index($sBasePath,"_samples"));
|
|
||||||
&FCKeditor('FCKeditor1');
|
|
||||||
$BasePath = $sBasePath;
|
|
||||||
$Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>';
|
|
||||||
&Create();
|
|
||||||
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
################
|
|
||||||
#Please use this function, rewriting it depending on a server's environment.
|
|
||||||
################
|
|
||||||
sub GetServerPath
|
|
||||||
{
|
|
||||||
my $dir;
|
|
||||||
|
|
||||||
if($DefServerPath) {
|
|
||||||
$dir = $DefServerPath;
|
|
||||||
} else {
|
|
||||||
if($ENV{'PATH_INFO'}) {
|
|
||||||
$dir = $ENV{'PATH_INFO'};
|
|
||||||
} elsif($ENV{'FILEPATH_INFO'}) {
|
|
||||||
$dir = $ENV{'FILEPATH_INFO'};
|
|
||||||
} elsif($ENV{'REQUEST_URI'}) {
|
|
||||||
$dir = $ENV{'REQUEST_URI'};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return($dir);
|
|
||||||
}
|
|
@ -1,182 +0,0 @@
|
|||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
#####
|
|
||||||
# FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
# Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
#
|
|
||||||
# == BEGIN LICENSE ==
|
|
||||||
#
|
|
||||||
# Licensed under the terms of any of the following licenses at your
|
|
||||||
# choice:
|
|
||||||
#
|
|
||||||
# - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
# http://www.gnu.org/licenses/gpl.html
|
|
||||||
#
|
|
||||||
# - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
# http://www.gnu.org/licenses/lgpl.html
|
|
||||||
#
|
|
||||||
# - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
# http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
#
|
|
||||||
# == END LICENSE ==
|
|
||||||
#
|
|
||||||
# Sample page.
|
|
||||||
#####
|
|
||||||
|
|
||||||
## START: Hack for Windows (Not important to understand the editor code... Perl specific).
|
|
||||||
if(Windows_check()) {
|
|
||||||
chdir(GetScriptPath($0));
|
|
||||||
}
|
|
||||||
|
|
||||||
sub Windows_check
|
|
||||||
{
|
|
||||||
# IIS,PWS(NT/95)
|
|
||||||
$www_server_os = $^O;
|
|
||||||
# Win98 & NT(SP4)
|
|
||||||
if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
|
|
||||||
# AnHTTPd/Omni/IIS
|
|
||||||
if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
|
|
||||||
# Win Apache
|
|
||||||
if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
|
|
||||||
if($www_server_os=~ /win/i) { return(1); }
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
sub GetScriptPath {
|
|
||||||
local($path) = @_;
|
|
||||||
if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
|
|
||||||
$path;
|
|
||||||
}
|
|
||||||
## END: Hack for IIS
|
|
||||||
|
|
||||||
require '../../fckeditor.pl';
|
|
||||||
|
|
||||||
# When $ENV{'PATH_INFO'} cannot be used by perl.
|
|
||||||
# $DefRootPath = "/XXXXX/_samples/perl/sample02.cgi"; Please write in script.
|
|
||||||
|
|
||||||
my $DefServerPath = "";
|
|
||||||
my $ServerPath;
|
|
||||||
|
|
||||||
$ServerPath = &GetServerPath();
|
|
||||||
|
|
||||||
if($ENV{'REQUEST_METHOD'} eq "POST") {
|
|
||||||
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
|
|
||||||
} else {
|
|
||||||
$buffer = $ENV{'QUERY_STRING'};
|
|
||||||
}
|
|
||||||
@pairs = split(/&/,$buffer);
|
|
||||||
foreach $pair (@pairs) {
|
|
||||||
($name,$value) = split(/=/,$pair);
|
|
||||||
$value =~ tr/+/ /;
|
|
||||||
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
|
|
||||||
$value =~ s/\t//g;
|
|
||||||
$value =~ s/\r\n/\n/g;
|
|
||||||
$FORM{$name} .= "\0" if(defined($FORM{$name}));
|
|
||||||
$FORM{$name} .= $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
print "Content-type: text/html\n\n";
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbLanguages' ) ;
|
|
||||||
for ( code in editorInstance.Language.AvailableLanguages )
|
|
||||||
{
|
|
||||||
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
|
|
||||||
}
|
|
||||||
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function AddComboOption(combo, optionText, optionValue)
|
|
||||||
{
|
|
||||||
var oOption = document.createElement("OPTION") ;
|
|
||||||
|
|
||||||
combo.options.add(oOption) ;
|
|
||||||
|
|
||||||
oOption.innerHTML = optionText ;
|
|
||||||
oOption.value = optionValue ;
|
|
||||||
|
|
||||||
return oOption ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Perl - Sample 2</h1>
|
|
||||||
This sample shows the editor in all its available languages.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select a language:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cgi" method="post" target="_blank">
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
#// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
#// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
#// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
$sBasePath = $ServerPath;
|
|
||||||
$sBasePath = substr( $sBasePath, 0, index($sBasePath,"_samples"));
|
|
||||||
|
|
||||||
&FCKeditor('FCKeditor1');
|
|
||||||
$BasePath = $sBasePath;
|
|
||||||
|
|
||||||
if($FORM{'Lang'} ne "") {
|
|
||||||
$Config{'AutoDetectLanguage'} = "false";
|
|
||||||
$Config{'DefaultLanguage'} = $FORM{'Lang'};
|
|
||||||
} else {
|
|
||||||
$Config{'AutoDetectLanguage'} = "true";
|
|
||||||
$Config{'DefaultLanguage'} = 'en' ;
|
|
||||||
}
|
|
||||||
$Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
&Create();
|
|
||||||
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
################
|
|
||||||
#Please use this function, rewriting it depending on a server's environment.
|
|
||||||
################
|
|
||||||
sub GetServerPath
|
|
||||||
{
|
|
||||||
my $dir;
|
|
||||||
|
|
||||||
if($DefServerPath) {
|
|
||||||
$dir = $DefServerPath;
|
|
||||||
} else {
|
|
||||||
if($ENV{'PATH_INFO'}) {
|
|
||||||
$dir = $ENV{'PATH_INFO'};
|
|
||||||
} elsif($ENV{'FILEPATH_INFO'}) {
|
|
||||||
$dir = $ENV{'FILEPATH_INFO'};
|
|
||||||
} elsif($ENV{'REQUEST_URI'}) {
|
|
||||||
$dir = $ENV{'REQUEST_URI'};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return($dir);
|
|
||||||
}
|
|
@ -1,167 +0,0 @@
|
|||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
#####
|
|
||||||
# FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
# Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
#
|
|
||||||
# == BEGIN LICENSE ==
|
|
||||||
#
|
|
||||||
# Licensed under the terms of any of the following licenses at your
|
|
||||||
# choice:
|
|
||||||
#
|
|
||||||
# - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
# http://www.gnu.org/licenses/gpl.html
|
|
||||||
#
|
|
||||||
# - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
# http://www.gnu.org/licenses/lgpl.html
|
|
||||||
#
|
|
||||||
# - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
# http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
#
|
|
||||||
# == END LICENSE ==
|
|
||||||
#
|
|
||||||
# Sample page.
|
|
||||||
#####
|
|
||||||
|
|
||||||
## START: Hack for Windows (Not important to understand the editor code... Perl specific).
|
|
||||||
if(Windows_check()) {
|
|
||||||
chdir(GetScriptPath($0));
|
|
||||||
}
|
|
||||||
|
|
||||||
sub Windows_check
|
|
||||||
{
|
|
||||||
# IIS,PWS(NT/95)
|
|
||||||
$www_server_os = $^O;
|
|
||||||
# Win98 & NT(SP4)
|
|
||||||
if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
|
|
||||||
# AnHTTPd/Omni/IIS
|
|
||||||
if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
|
|
||||||
# Win Apache
|
|
||||||
if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
|
|
||||||
if($www_server_os=~ /win/i) { return(1); }
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
sub GetScriptPath {
|
|
||||||
local($path) = @_;
|
|
||||||
if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
|
|
||||||
$path;
|
|
||||||
}
|
|
||||||
## END: Hack for IIS
|
|
||||||
|
|
||||||
require '../../fckeditor.pl';
|
|
||||||
|
|
||||||
# When $ENV{'PATH_INFO'} cannot be used by perl.
|
|
||||||
# $DefRootPath = "/XXXXX/_samples/perl/sample03.cgi"; Please write in script.
|
|
||||||
|
|
||||||
my $DefServerPath = "";
|
|
||||||
my $ServerPath;
|
|
||||||
|
|
||||||
$ServerPath = &GetServerPath();
|
|
||||||
|
|
||||||
if($ENV{'REQUEST_METHOD'} eq "POST") {
|
|
||||||
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
|
|
||||||
} else {
|
|
||||||
$buffer = $ENV{'QUERY_STRING'};
|
|
||||||
}
|
|
||||||
@pairs = split(/&/,$buffer);
|
|
||||||
foreach $pair (@pairs) {
|
|
||||||
($name,$value) = split(/=/,$pair);
|
|
||||||
$value =~ tr/+/ /;
|
|
||||||
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
|
|
||||||
$value =~ s/\t//g;
|
|
||||||
$value =~ s/\r\n/\n/g;
|
|
||||||
$FORM{$name} .= "\0" if(defined($FORM{$name}));
|
|
||||||
$FORM{$name} .= $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
print "Content-type: text/html\n\n";
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbToolbars' ) ;
|
|
||||||
oCombo.value = editorInstance.ToolbarSet.Name ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeToolbar( toolbarName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Perl - Sample 3</h1>
|
|
||||||
This sample shows how to change the editor toolbar.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the toolbar to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="Default" selected>Default</option>
|
|
||||||
<option value="Basic">Basic</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cgi" method="post" target="_blank">
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
#// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
#// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
#// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
|
|
||||||
$sBasePath = $ServerPath;
|
|
||||||
$sBasePath = substr($sBasePath, 0, index( $sBasePath, "_samples" ));
|
|
||||||
|
|
||||||
&FCKeditor('FCKeditor1') ;
|
|
||||||
$BasePath = $sBasePath ;
|
|
||||||
|
|
||||||
if($FORM{'Toolbar'} ne "") {
|
|
||||||
$ToolbarSet = &specialchar_cnv( $FORM{'Toolbar'} );
|
|
||||||
}
|
|
||||||
$Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
&Create();
|
|
||||||
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
################
|
|
||||||
#Please use this function, rewriting it depending on a server's environment.
|
|
||||||
################
|
|
||||||
sub GetServerPath
|
|
||||||
{
|
|
||||||
my $dir;
|
|
||||||
|
|
||||||
if($DefServerPath) {
|
|
||||||
$dir = $DefServerPath;
|
|
||||||
} else {
|
|
||||||
if($ENV{'PATH_INFO'}) {
|
|
||||||
$dir = $ENV{'PATH_INFO'};
|
|
||||||
} elsif($ENV{'FILEPATH_INFO'}) {
|
|
||||||
$dir = $ENV{'FILEPATH_INFO'};
|
|
||||||
} elsif($ENV{'REQUEST_URI'}) {
|
|
||||||
$dir = $ENV{'REQUEST_URI'};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return($dir);
|
|
||||||
}
|
|
@ -1,174 +0,0 @@
|
|||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
#####
|
|
||||||
# FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
# Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
#
|
|
||||||
# == BEGIN LICENSE ==
|
|
||||||
#
|
|
||||||
# Licensed under the terms of any of the following licenses at your
|
|
||||||
# choice:
|
|
||||||
#
|
|
||||||
# - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
# http://www.gnu.org/licenses/gpl.html
|
|
||||||
#
|
|
||||||
# - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
# http://www.gnu.org/licenses/lgpl.html
|
|
||||||
#
|
|
||||||
# - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
# http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
#
|
|
||||||
# == END LICENSE ==
|
|
||||||
#
|
|
||||||
# Sample page.
|
|
||||||
#####
|
|
||||||
|
|
||||||
## START: Hack for Windows (Not important to understand the editor code... Perl specific).
|
|
||||||
if(Windows_check()) {
|
|
||||||
chdir(GetScriptPath($0));
|
|
||||||
}
|
|
||||||
|
|
||||||
sub Windows_check
|
|
||||||
{
|
|
||||||
# IIS,PWS(NT/95)
|
|
||||||
$www_server_os = $^O;
|
|
||||||
# Win98 & NT(SP4)
|
|
||||||
if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
|
|
||||||
# AnHTTPd/Omni/IIS
|
|
||||||
if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
|
|
||||||
# Win Apache
|
|
||||||
if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
|
|
||||||
if($www_server_os=~ /win/i) { return(1); }
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
sub GetScriptPath {
|
|
||||||
local($path) = @_;
|
|
||||||
if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
|
|
||||||
$path;
|
|
||||||
}
|
|
||||||
## END: Hack for IIS
|
|
||||||
|
|
||||||
require '../../fckeditor.pl';
|
|
||||||
|
|
||||||
# When $ENV{'PATH_INFO'} cannot be used by perl.
|
|
||||||
# $DefRootPath = "/XXXXX/_samples/perl/sample04.cgi"; Please write in script.
|
|
||||||
|
|
||||||
my $DefServerPath = "";
|
|
||||||
my $ServerPath;
|
|
||||||
|
|
||||||
$ServerPath = &GetServerPath();
|
|
||||||
|
|
||||||
if($ENV{'REQUEST_METHOD'} eq "POST") {
|
|
||||||
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
|
|
||||||
} else {
|
|
||||||
$buffer = $ENV{'QUERY_STRING'};
|
|
||||||
}
|
|
||||||
@pairs = split(/&/,$buffer);
|
|
||||||
foreach $pair (@pairs) {
|
|
||||||
($name,$value) = split(/=/,$pair);
|
|
||||||
$value =~ tr/+/ /;
|
|
||||||
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
|
|
||||||
$value =~ s/\t//g;
|
|
||||||
$value =~ s/\r\n/\n/g;
|
|
||||||
$FORM{$name} .= "\0" if(defined($FORM{$name}));
|
|
||||||
$FORM{$name} .= $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
#!!Caution javascript \ Quart
|
|
||||||
|
|
||||||
print "Content-type: text/html\n\n";
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbSkins' ) ;
|
|
||||||
|
|
||||||
// Get the active skin.
|
|
||||||
var sSkin = editorInstance.Config['SkinPath'] ;
|
|
||||||
sSkin = sSkin.match(/[^\\/]+(?=\\/\$)/g) ;
|
|
||||||
|
|
||||||
oCombo.value = sSkin ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeSkin( skinName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Skin=" + skinName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Perl - Sample 4</h1>
|
|
||||||
This sample shows how to change the editor skin.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the skin to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="default" selected>Default</option>
|
|
||||||
<option value="office2003">Office 2003</option>
|
|
||||||
<option value="silver">Silver</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.cgi" method="post" target="_blank">
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
#// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
#// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
#// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
$sBasePath = $ServerPath;
|
|
||||||
$sBasePath = substr( $sBasePath, 0, index( $sBasePath, "_samples" ) ) ;
|
|
||||||
|
|
||||||
&FCKeditor('FCKeditor1');
|
|
||||||
$BasePath = $sBasePath;
|
|
||||||
|
|
||||||
if($FORM{'Skin'} ne "") {
|
|
||||||
$Config{'SkinPath'} = $sBasePath . 'editor/skins/' . &specialchar_cnv( $FORM{'Skin'} ) . '/' ;
|
|
||||||
}
|
|
||||||
$Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
&Create() ;
|
|
||||||
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
################
|
|
||||||
#Please use this function, rewriting it depending on a server's environment.
|
|
||||||
################
|
|
||||||
sub GetServerPath
|
|
||||||
{
|
|
||||||
my $dir;
|
|
||||||
|
|
||||||
if($DefServerPath) {
|
|
||||||
$dir = $DefServerPath;
|
|
||||||
} else {
|
|
||||||
if($ENV{'PATH_INFO'}) {
|
|
||||||
$dir = $ENV{'PATH_INFO'};
|
|
||||||
} elsif($ENV{'FILEPATH_INFO'}) {
|
|
||||||
$dir = $ENV{'FILEPATH_INFO'};
|
|
||||||
} elsif($ENV{'REQUEST_URI'}) {
|
|
||||||
$dir = $ENV{'REQUEST_URI'};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return($dir);
|
|
||||||
}
|
|
@ -1,107 +0,0 @@
|
|||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
#####
|
|
||||||
# FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
# Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
#
|
|
||||||
# == BEGIN LICENSE ==
|
|
||||||
#
|
|
||||||
# Licensed under the terms of any of the following licenses at your
|
|
||||||
# choice:
|
|
||||||
#
|
|
||||||
# - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
# http://www.gnu.org/licenses/gpl.html
|
|
||||||
#
|
|
||||||
# - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
# http://www.gnu.org/licenses/lgpl.html
|
|
||||||
#
|
|
||||||
# - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
# http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
#
|
|
||||||
# == END LICENSE ==
|
|
||||||
#
|
|
||||||
# This page lists the data posted by a form.
|
|
||||||
#####
|
|
||||||
|
|
||||||
## START: Hack for Windows (Not important to understand the editor code... Perl specific).
|
|
||||||
if(Windows_check()) {
|
|
||||||
chdir(GetScriptPath($0));
|
|
||||||
}
|
|
||||||
|
|
||||||
sub Windows_check
|
|
||||||
{
|
|
||||||
# IIS,PWS(NT/95)
|
|
||||||
$www_server_os = $^O;
|
|
||||||
# Win98 & NT(SP4)
|
|
||||||
if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
|
|
||||||
# AnHTTPd/Omni/IIS
|
|
||||||
if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
|
|
||||||
# Win Apache
|
|
||||||
if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
|
|
||||||
if($www_server_os=~ /win/i) { return(1); }
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
sub GetScriptPath {
|
|
||||||
local($path) = @_;
|
|
||||||
if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
|
|
||||||
$path;
|
|
||||||
}
|
|
||||||
## END: Hack for IIS
|
|
||||||
|
|
||||||
require '../../fckeditor.pl';
|
|
||||||
|
|
||||||
if($ENV{'REQUEST_METHOD'} eq "POST") {
|
|
||||||
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
|
|
||||||
} else {
|
|
||||||
$buffer = $ENV{'QUERY_STRING'};
|
|
||||||
}
|
|
||||||
@pairs = split(/&/,$buffer);
|
|
||||||
foreach $pair (@pairs) {
|
|
||||||
($name,$value) = split(/=/,$pair);
|
|
||||||
$value =~ tr/+/ /;
|
|
||||||
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
|
|
||||||
$value =~ s/\t//g;
|
|
||||||
$value =~ s/\r\n/\n/g;
|
|
||||||
$FORM{$name} .= "\0" if(defined($FORM{$name}));
|
|
||||||
$FORM{$name} .= $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
print "Content-type: text/html\n\n";
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" >
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Samples - Posted Data</h1>
|
|
||||||
This page lists all data posted by the form.
|
|
||||||
<hr>
|
|
||||||
<table border="1" cellspacing="0" id="outputSample">
|
|
||||||
<colgroup><col width="80"><col></colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Field Name</th>
|
|
||||||
<th>Value</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
_HTML_TAG_
|
|
||||||
|
|
||||||
foreach $key (keys %FORM) {
|
|
||||||
$postedValue = &specialchar_cnv($FORM{$key});
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
<tr>
|
|
||||||
<th>$key</th>
|
|
||||||
<td><pre>$postedValue</pre></td>
|
|
||||||
</tr>
|
|
||||||
_HTML_TAG_
|
|
||||||
}
|
|
||||||
print <<"_HTML_TAG_";
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
_HTML_TAG_
|
|
@ -1,57 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
|
|
||||||
include("../../fckeditor.php") ;
|
|
||||||
?>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - PHP - Sample 1</h1>
|
|
||||||
This sample displays a normal HTML form with an FCKeditor with full features
|
|
||||||
enabled.
|
|
||||||
<hr>
|
|
||||||
<form action="sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<?php
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
$sBasePath = $_SERVER['PHP_SELF'] ;
|
|
||||||
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
|
|
||||||
|
|
||||||
$oFCKeditor = new FCKeditor('FCKeditor1') ;
|
|
||||||
$oFCKeditor->BasePath = $sBasePath ;
|
|
||||||
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
$oFCKeditor->Create() ;
|
|
||||||
?>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,108 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
|
|
||||||
include("../../fckeditor.php") ;
|
|
||||||
?>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbLanguages' ) ;
|
|
||||||
for ( code in editorInstance.Language.AvailableLanguages )
|
|
||||||
{
|
|
||||||
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
|
|
||||||
}
|
|
||||||
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function AddComboOption(combo, optionText, optionValue)
|
|
||||||
{
|
|
||||||
var oOption = document.createElement("OPTION") ;
|
|
||||||
|
|
||||||
combo.options.add(oOption) ;
|
|
||||||
|
|
||||||
oOption.innerHTML = optionText ;
|
|
||||||
oOption.value = optionValue ;
|
|
||||||
|
|
||||||
return oOption ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeLanguage( languageCode )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - PHP - Sample 2</h1>
|
|
||||||
This sample shows the editor in all its available languages.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select a language:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<?php
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
$sBasePath = $_SERVER['PHP_SELF'] ;
|
|
||||||
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
|
|
||||||
|
|
||||||
$oFCKeditor = new FCKeditor('FCKeditor1') ;
|
|
||||||
$oFCKeditor->BasePath = $sBasePath ;
|
|
||||||
|
|
||||||
if ( isset($_GET['Lang']) )
|
|
||||||
{
|
|
||||||
$oFCKeditor->Config['AutoDetectLanguage'] = false ;
|
|
||||||
$oFCKeditor->Config['DefaultLanguage'] = $_GET['Lang'] ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$oFCKeditor->Config['AutoDetectLanguage'] = true ;
|
|
||||||
$oFCKeditor->Config['DefaultLanguage'] = 'en' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
$oFCKeditor->Create() ;
|
|
||||||
?> <br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,89 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
|
|
||||||
include("../../fckeditor.php") ;
|
|
||||||
?>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbToolbars' ) ;
|
|
||||||
oCombo.value = editorInstance.ToolbarSet.Name ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeToolbar( toolbarName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - PHP - Sample 3</h1>
|
|
||||||
This sample shows how to change the editor toolbar.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the toolbar to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="Default" selected>Default</option>
|
|
||||||
<option value="Basic">Basic</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<?php
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
$sBasePath = $_SERVER['PHP_SELF'] ;
|
|
||||||
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
|
|
||||||
|
|
||||||
$oFCKeditor = new FCKeditor('FCKeditor1') ;
|
|
||||||
$oFCKeditor->BasePath = $sBasePath ;
|
|
||||||
|
|
||||||
if ( isset($_GET['Toolbar']) )
|
|
||||||
$oFCKeditor->ToolbarSet = htmlspecialchars($_GET['Toolbar']);
|
|
||||||
|
|
||||||
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
$oFCKeditor->Create() ;
|
|
||||||
?>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,95 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Sample page.
|
|
||||||
*/
|
|
||||||
|
|
||||||
include("../../fckeditor.php") ;
|
|
||||||
?>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function FCKeditor_OnComplete( editorInstance )
|
|
||||||
{
|
|
||||||
var oCombo = document.getElementById( 'cmbSkins' ) ;
|
|
||||||
|
|
||||||
// Get the active skin.
|
|
||||||
var sSkin = editorInstance.Config['SkinPath'] ;
|
|
||||||
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
|
|
||||||
|
|
||||||
oCombo.value = sSkin ;
|
|
||||||
oCombo.style.visibility = '' ;
|
|
||||||
}
|
|
||||||
|
|
||||||
function ChangeSkin( skinName )
|
|
||||||
{
|
|
||||||
window.location.href = window.location.pathname + "?Skin=" + skinName ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - PHP - Sample 4</h1>
|
|
||||||
This sample shows how to change the editor skin.
|
|
||||||
<hr>
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Select the skin to load:
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
|
|
||||||
<option value="default" selected>Default</option>
|
|
||||||
<option value="office2003">Office 2003</option>
|
|
||||||
<option value="silver">Silver</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br>
|
|
||||||
<form action="sampleposteddata.php" method="post" target="_blank">
|
|
||||||
<?php
|
|
||||||
// Automatically calculates the editor base path based on the _samples directory.
|
|
||||||
// This is usefull only for these samples. A real application should use something like this:
|
|
||||||
// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
|
||||||
$sBasePath = $_SERVER['PHP_SELF'] ;
|
|
||||||
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
|
|
||||||
|
|
||||||
$oFCKeditor = new FCKeditor('FCKeditor1') ;
|
|
||||||
$oFCKeditor->BasePath = $sBasePath ;
|
|
||||||
|
|
||||||
if ( isset($_GET['Skin']) )
|
|
||||||
$oFCKeditor->Config['SkinPath'] = $sBasePath . 'editor/skins/' . htmlspecialchars($_GET['Skin']) . '/' ;
|
|
||||||
|
|
||||||
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
|
|
||||||
$oFCKeditor->Create() ;
|
|
||||||
?>
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,69 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* This page lists the data posted by a form.
|
|
||||||
*/
|
|
||||||
?>
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" >
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Samples - Posted Data</h1>
|
|
||||||
This page lists all data posted by the form.
|
|
||||||
<hr>
|
|
||||||
<table border="1" cellspacing="0" id="outputSample">
|
|
||||||
<colgroup><col width="80"><col></colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Field Name</th>
|
|
||||||
<th>Value</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if ( isset( $_POST ) )
|
|
||||||
$postArray = &$_POST ; // 4.1.0 or later, use $_POST
|
|
||||||
else
|
|
||||||
$postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
|
|
||||||
|
|
||||||
foreach ( $postArray as $sForm => $value )
|
|
||||||
{
|
|
||||||
if ( get_magic_quotes_gpc() )
|
|
||||||
$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
|
|
||||||
else
|
|
||||||
$postedValue = htmlspecialchars( $value ) ;
|
|
||||||
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<th><?php echo $sForm?></th>
|
|
||||||
<td><pre><?php echo $postedValue?></pre></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,80 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
"""
|
|
||||||
FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
|
|
||||||
== BEGIN LICENSE ==
|
|
||||||
|
|
||||||
Licensed under the terms of any of the following licenses at your
|
|
||||||
choice:
|
|
||||||
|
|
||||||
- GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
http://www.gnu.org/licenses/gpl.html
|
|
||||||
|
|
||||||
- GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
http://www.gnu.org/licenses/lgpl.html
|
|
||||||
|
|
||||||
- Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
|
|
||||||
== END LICENSE ==
|
|
||||||
|
|
||||||
Sample page.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import cgi
|
|
||||||
import os
|
|
||||||
|
|
||||||
# Ensure that the fckeditor.py is included in your classpath
|
|
||||||
import fckeditor
|
|
||||||
|
|
||||||
# Tell the browser to render html
|
|
||||||
print "Content-Type: text/html"
|
|
||||||
print ""
|
|
||||||
|
|
||||||
# Document header
|
|
||||||
print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>FCKeditor - Python - Sample 1</h1>
|
|
||||||
This sample displays a normal HTML form with an FCKeditor with full features
|
|
||||||
enabled.
|
|
||||||
<hr>
|
|
||||||
<form action="sampleposteddata.py" method="post" target="_blank">
|
|
||||||
"""
|
|
||||||
|
|
||||||
# This is the real work
|
|
||||||
try:
|
|
||||||
sBasePath = os.environ.get("SCRIPT_NAME")
|
|
||||||
sBasePath = sBasePath[0:sBasePath.find("_samples")]
|
|
||||||
|
|
||||||
oFCKeditor = fckeditor.FCKeditor('FCKeditor1')
|
|
||||||
oFCKeditor.BasePath = sBasePath
|
|
||||||
oFCKeditor.Value = """<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>"""
|
|
||||||
print oFCKeditor.Create()
|
|
||||||
except Exception, e:
|
|
||||||
print e
|
|
||||||
print """
|
|
||||||
<br>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
"""
|
|
||||||
|
|
||||||
# For testing your environments
|
|
||||||
print "<hr>"
|
|
||||||
for key in os.environ.keys():
|
|
||||||
print "%s: %s<br>" % (key, os.environ.get(key, ""))
|
|
||||||
print "<hr>"
|
|
||||||
|
|
||||||
# Document footer
|
|
||||||
print """
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
"""
|
|
@ -1,88 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
"""
|
|
||||||
FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
|
|
||||||
== BEGIN LICENSE ==
|
|
||||||
|
|
||||||
Licensed under the terms of any of the following licenses at your
|
|
||||||
choice:
|
|
||||||
|
|
||||||
- GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
http://www.gnu.org/licenses/gpl.html
|
|
||||||
|
|
||||||
- GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
http://www.gnu.org/licenses/lgpl.html
|
|
||||||
|
|
||||||
- Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
|
|
||||||
== END LICENSE ==
|
|
||||||
|
|
||||||
This page lists the data posted by a form.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import cgi
|
|
||||||
import os
|
|
||||||
|
|
||||||
# Tell the browser to render html
|
|
||||||
print "Content-Type: text/html"
|
|
||||||
print ""
|
|
||||||
|
|
||||||
try:
|
|
||||||
# Create a cgi object
|
|
||||||
form = cgi.FieldStorage()
|
|
||||||
except Exception, e:
|
|
||||||
print e
|
|
||||||
|
|
||||||
# Document header
|
|
||||||
print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Samples - Posted Data</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="../sample.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
"""
|
|
||||||
|
|
||||||
# This is the real work
|
|
||||||
print """
|
|
||||||
<h1>FCKeditor - Samples - Posted Data</h1>
|
|
||||||
This page lists all data posted by the form.
|
|
||||||
<hr>
|
|
||||||
<table border="1" cellspacing="0" id="outputSample">
|
|
||||||
<colgroup><col width="80"><col></colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Field Name</th>
|
|
||||||
<th>Value</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
"""
|
|
||||||
for key in form.keys():
|
|
||||||
try:
|
|
||||||
value = form[key].value
|
|
||||||
print """
|
|
||||||
<tr>
|
|
||||||
<th>%s</th>
|
|
||||||
<td><pre>%s</pre></td>
|
|
||||||
</tr>
|
|
||||||
""" % (key, value)
|
|
||||||
except Exception, e:
|
|
||||||
print e
|
|
||||||
print "</table>"
|
|
||||||
|
|
||||||
# For testing your environments
|
|
||||||
print "<hr>"
|
|
||||||
for key in os.environ.keys():
|
|
||||||
print "%s: %s<br>" % (key, os.environ.get(key, ""))
|
|
||||||
print "<hr>"
|
|
||||||
|
|
||||||
# Document footer
|
|
||||||
print """
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
"""
|
|
@ -1,74 +0,0 @@
|
|||||||
/*
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Styles used in the samples pages.
|
|
||||||
*/
|
|
||||||
|
|
||||||
body, td, th, input, select, textarea
|
|
||||||
{
|
|
||||||
font-size: 12px;
|
|
||||||
font-family: Arial, Verdana, Sans-Serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1
|
|
||||||
{
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 180%;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
form
|
|
||||||
{
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#outputSample
|
|
||||||
{
|
|
||||||
table-layout: fixed;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre
|
|
||||||
{
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
white-space: pre; /* CSS2 */
|
|
||||||
white-space: -moz-pre-wrap; /* Mozilla*/
|
|
||||||
white-space: -o-pre-wrap; /* Opera 7 */
|
|
||||||
white-space: pre-wrap; /* CSS 2.1 */
|
|
||||||
white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
|
|
||||||
word-wrap: break-word; /* IE */
|
|
||||||
}
|
|
||||||
|
|
||||||
#outputSample thead th
|
|
||||||
{
|
|
||||||
color: #dddddd;
|
|
||||||
background-color: #999999;
|
|
||||||
padding: 4px;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
#outputSample tbody th
|
|
||||||
{
|
|
||||||
vertical-align: top;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
@ -1,120 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
||||||
"http://www.w3.org/TR/html4/strict.dtd">
|
|
||||||
<!--
|
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
|
||||||
*
|
|
||||||
* == BEGIN LICENSE ==
|
|
||||||
*
|
|
||||||
* Licensed under the terms of any of the following licenses at your
|
|
||||||
* choice:
|
|
||||||
*
|
|
||||||
* - GNU General Public License Version 2 or later (the "GPL")
|
|
||||||
* http://www.gnu.org/licenses/gpl.html
|
|
||||||
*
|
|
||||||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
|
||||||
* http://www.gnu.org/licenses/lgpl.html
|
|
||||||
*
|
|
||||||
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
|
||||||
* http://www.mozilla.org/MPL/MPL-1.1.html
|
|
||||||
*
|
|
||||||
* == END LICENSE ==
|
|
||||||
*
|
|
||||||
* Page used to select the sample to view.
|
|
||||||
-->
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>FCKeditor - Sample Selection</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
<link href="sample.css" rel="stylesheet" type="text/css">
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
if ( window.top == window )
|
|
||||||
document.location = 'default.html' ;
|
|
||||||
|
|
||||||
function OpenSample( sample )
|
|
||||||
{
|
|
||||||
if ( sample.length > 0 )
|
|
||||||
window.open( sample, 'Sample' ) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body style="margin:1em;">
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" style="height: 100%">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
Please select the sample you want to view:
|
|
||||||
<br />
|
|
||||||
<select onchange="OpenSample(this.value);">
|
|
||||||
<optgroup label="JavaScript">
|
|
||||||
<option value="html/sample01.html" selected="selected">JavaScript : Sample 01 : Editor
|
|
||||||
with all features</option>
|
|
||||||
<option value="html/sample02.html">JavaScript : Sample 02 : Replacement of a TEXTAREA</option>
|
|
||||||
<option value="html/sample03.html">JavaScript : Sample 03 : Multi-language support</option>
|
|
||||||
<option value="html/sample04.html">JavaScript : Sample 04 : Toolbar selection</option>
|
|
||||||
<option value="html/sample05.html">JavaScript : Sample 05 : Skins support</option>
|
|
||||||
<option value="html/sample06.html">JavaScript : Sample 06 : Plugins support</option>
|
|
||||||
<option value="html/sample07.html">JavaScript : Sample 07 : Full Page editing</option>
|
|
||||||
<option value="html/sample08.html">JavaScript : Sample 08 : Editor API usage</option>
|
|
||||||
<option value="html/sample09.html">JavaScript : Sample 09 : Complex form (multiple editors)</option>
|
|
||||||
<option value="html/sample10.html">JavaScript : Sample 10 : Shared toolbar on same page</option>
|
|
||||||
<option value="html/sample11.html">JavaScript : Sample 11 : Shared toolbar from IFRAME</option>
|
|
||||||
<option value="html/sample12.html">JavaScript : Sample 12 : Enter key behavior</option>
|
|
||||||
<option value="html/sample13.html">JavaScript : Sample 13 : Dinamically switching with a Textarea</option>
|
|
||||||
<option value="html/sample14.html">JavaScript : Sample 14 : XHTML 1.1</option>
|
|
||||||
<option value="html/sample15.html">JavaScript : Sample 15 : Legacy HTML 4 tags</option>
|
|
||||||
<option value="html/sample16.html">JavaScript : Sample 16 : Flash content editor</option>
|
|
||||||
<option value=""></option>
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="Active Fox Pro">
|
|
||||||
<option value="afp/sample01.afp">AFP : Sample 01 : Editor with all features</option>
|
|
||||||
<option value="afp/sample02.afp">AFP : Sample 02 : Multi-language support</option>
|
|
||||||
<option value="afp/sample03.afp">AFP : Sample 03 : Toolbar selection</option>
|
|
||||||
<option value="afp/sample04.afp">AFP : Sample 04 : Skins support</option>
|
|
||||||
<option value=""></option>
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="ASP">
|
|
||||||
<option value="asp/sample01.asp">ASP : Sample 01 : Editor with all features</option>
|
|
||||||
<option value="asp/sample02.asp">ASP : Sample 02 : Multi-language support</option>
|
|
||||||
<option value="asp/sample03.asp">ASP : Sample 03 : Toolbar selection</option>
|
|
||||||
<option value="asp/sample04.asp">ASP : Sample 04 : Skins support</option>
|
|
||||||
<option value=""></option>
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="ColdFusion">
|
|
||||||
<option value="cfm/sample01.cfm">ColdFusion : Sample 01 : Editor with all features</option>
|
|
||||||
<option value="cfm/sample02_mx.cfm">ColdFusion : Sample 02 : Advanced version for ColdFusion
|
|
||||||
MX</option>
|
|
||||||
<option value=""></option>
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="Lasso">
|
|
||||||
<option value="lasso/sample01.lasso">Lasso : Sample 01 : Editor with all features</option>
|
|
||||||
<option value="lasso/sample02.lasso">Lasso : Sample 02 : Multi-language support</option>
|
|
||||||
<option value="lasso/sample03.lasso">Lasso : Sample 03 : Toolbar selection</option>
|
|
||||||
<option value="lasso/sample04.lasso">Lasso : Sample 04 : Skins support</option>
|
|
||||||
<option value=""></option>
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="Perl">
|
|
||||||
<option value="perl/sample01.cgi">Perl : Sample 01 : Editor with all features</option>
|
|
||||||
<option value="perl/sample02.cgi">Perl : Sample 02 : Multi-language support</option>
|
|
||||||
<option value="perl/sample03.cgi">Perl : Sample 03 : Toolbar selection</option>
|
|
||||||
<option value="perl/sample04.cgi">Perl : Sample 04 : Skins support</option>
|
|
||||||
<option value=""></option>
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="PHP">
|
|
||||||
<option value="php/sample01.php">PHP : Sample 01 : Editor with all features</option>
|
|
||||||
<option value="php/sample02.php">PHP : Sample 02 : Multi-language support</option>
|
|
||||||
<option value="php/sample03.php">PHP : Sample 03 : Toolbar selection</option>
|
|
||||||
<option value="php/sample04.php">PHP : Sample 04 : Skins support</option>
|
|
||||||
<option value=""></option>
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="Python">
|
|
||||||
<option value="py/sample01.py">Python : Sample 01 : Editor with all features</option>
|
|
||||||
</optgroup>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<!--
|
<!--
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<!--
|
<!--
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
@ -33,133 +33,143 @@
|
|||||||
<h1>
|
<h1>
|
||||||
FCKeditor ChangeLog - What's New?</h1>
|
FCKeditor ChangeLog - What's New?</h1>
|
||||||
<h3>
|
<h3>
|
||||||
Version 2.6.3</h3>
|
Version 2.6.4.1</h3>
|
||||||
<p>
|
<p>
|
||||||
Fixed Bugs:</p>
|
Fixed Bugs:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2412">#2412</a>] FCK.InsertHtml()
|
<li><strong>Security release, upgrade is highly recommended.</strong></li>
|
||||||
is now properly removing selected contents after content insertion in Firefox.</li>
|
</ul>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2420">#2420</a>] Spelling
|
<h3>
|
||||||
mistake corrections made by the spell checking dialog are now undoable. </li>
|
Version 2.6.4</h3>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2411">#2411</a>] Insert
|
<p>
|
||||||
anchor was not working for non-empty selections.</li>
|
Fixed Bugs:</p>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2426">#2426</a>] It was
|
<ul>
|
||||||
impossible to switch between editor areas with a single click.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2777">#2777</a>] Merging
|
||||||
|
cells between table header and body is no longer possible.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2815">#2815</a>] Fixed
|
||||||
|
WSC issues at slow connection speed. Added SSL support.</li>
|
||||||
<li>Language file updates for the following languages:
|
<li>Language file updates for the following languages:
|
||||||
<ul>
|
<ul>
|
||||||
<li>Canadian French</li>
|
<li>Chinese (Traditional)</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2402">#2402</a>] Catalan
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2846">#2846</a>] French</li>
|
||||||
</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2801">#2801</a>] Hebrew</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2400">#2400</a>] Chinese
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2824">#2824</a>] Russian</li>
|
||||||
(Simplified and Traditional)</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2811">#2811</a>] Turkish</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2401">#2401</a>] Croatian</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2422">#2422</a>] Czech</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2417">#2417</a>] Dutch</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2428">#2428</a>] French</li>
|
|
||||||
<li>German</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2427">#2427</a>] Hebrew</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2410">#2410</a>] Hindi</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2405">#2405</a>] Japanese</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2409">#2409</a>] Norwegian
|
|
||||||
and Norwegian Bokmål</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2429">#2429</a>] Spanish</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2406">#2406</a>] Vietnamese</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2757">#2757</a>] Fixed
|
||||||
|
a minor bug which causes selection positions to be improperly restored during undos
|
||||||
|
and redos.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
|
||||||
This version has been sponsored by <a href="http://www.dataillusion.com/fs/">Data Illusion
|
|
||||||
survey software solutions</a>.</p>
|
|
||||||
<h3>
|
<h3>
|
||||||
Version 2.6.3 Beta</h3>
|
Version 2.6.4 Beta</h3>
|
||||||
<p>
|
<p>
|
||||||
New Features and Improvements:</p>
|
New Features and Improvements:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/439">#439</a>] Added a
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2685">#2685</a>] Integration
|
||||||
new <strong>context menu option for opening links</strong> in the editor.</li>
|
with "WebSpellChecker", a <strong>zero installation and free spell checker</strong>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2220">#2220</a>] <strong>
|
provided by SpellChecker.net. This is now the default spell checker in the editor
|
||||||
Email links</strong> from the Link dialog <strong>are now encoded</strong> by default
|
(requires internet connection). All previous spell checking solutions are still
|
||||||
to prevent being harvested by spammers. (Kudos to asuter for proposing the patch)
|
available.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2430">#2430</a>] In the
|
||||||
|
table dialog it's possible to create header cells in the first row (included in
|
||||||
|
a thead element) or the first column of the table. </li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/822">#822</a>] The table
|
||||||
|
cell dialog allows switching between normal data cells or header cells (TD vs. TH).
|
||||||
</li>
|
</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2234">#2234</a>] Added
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2515">#2515</a>] New language
|
||||||
the ability to create, modify and remove <strong>DIV containers</strong>. </li>
|
file for Icelandic.</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2247">#2247</a>] The <strong>
|
|
||||||
SHIFT+SPACE</strong> keystroke will now <strong>produce a &nbsp;</strong> character.
|
|
||||||
</li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2252">#2252</a>] It's
|
|
||||||
now possible to enable the browsers default menu using the configuration file (FCKConfig.BrowserContextMenu
|
|
||||||
option). </li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2032">#2032</a>] Added
|
|
||||||
HTML samples for legacy HTML and Flash HTML. </li>
|
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/234">#234</a>] Introduced
|
|
||||||
the "PreventSubmitHandler" setting, which makes it possible to instruct the editor
|
|
||||||
to not handle the hidden field update on form submit events.</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
Fixed Bugs:</p>
|
Fixed Bugs:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2319">#2319</a>] On Opera
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2381">#2381</a>] Protected
|
||||||
and Firefox 3, the entire page was scrolling on SHIFT+ENTER, or when EnterMode='br'.</li>
|
the editor from duplicate iframes</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2321">#2321</a>] On Firefox
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1752">#1752</a>] Fixed
|
||||||
3, the entire page was scrolling when inserting block elements with the FCK.InsertElement
|
the issue with tablecommands plugin and undefined tagName.</li>
|
||||||
function, used by the Table and Horizontal Rule buttons.. </li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2333">#2333</a>] The &gt;
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/692">#692</a>] Added some
|
character inside text wasn't encoded in Opera and Safari.</li>
|
||||||
hints in editor/css/fck_editorarea.css on how to handle style items that would break
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2467">#2467</a>] Fixed
|
||||||
the style combo. </li>
|
JavaScript error with the fit window command in source mode.</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2263">#2263</a>] Fixed
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2472">#2472</a>] Splitting
|
||||||
a JavaScript error in IE which occurs when there are placeholder elements in the
|
a TH will create a two TH, not a TH and a TD.</li>
|
||||||
document and the user has pressed the Source button.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1891">#1891</a>] Removed
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2314">#2314</a>] Corrected
|
unnecessary name attributes in dialogs. </li>
|
||||||
mixed up Chinese translations for the blockquote command.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/798">#798</a>, <a target="_blank"
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2323">#2323</a>] Fixed
|
href="http://dev.fckeditor.net/ticket/2495">#2495</a>] If an image was placed inside
|
||||||
the issue where the show blocks command loses the current selection from the view
|
a container with dimensions or floating it wasn't possible to edit its properties
|
||||||
area when editing a long document.</li>
|
from the toolbar or context menu.</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2322">#2322</a>] Fixed
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1982">#1982</a>] Submenus
|
||||||
the issue where the fit window command loses the current selection and scroll position
|
in IE7 now are shown properly.</li>
|
||||||
in the editing area.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2496">#2496</a>] Using
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1917">#1917</a>] Fixed
|
the Paste dialogs in IE might insert the content at the start of the editor.</li>
|
||||||
the issue where the merge down command for tables cells does not work in IE for
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2349">#2496</a>] Fixed
|
||||||
more than two cells.</li>
|
RTL dialog layout in Internet Explorer.</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2320">#2320</a>] Fixed
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2488">#2488</a>] Fixed
|
||||||
the issue where the Find/Replace dialog scrolls the entire page.</li>
|
the issue where email links in IE would take the browser to a new page in addition
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1645">#1645</a>] Added
|
to calling up the email client.</li>
|
||||||
warning message about Firefox 3's strict origin policy.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2519">#2519</a>] Fixed
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2272">#2272</a>] Improved
|
race condition at registering the FCKeditorAPI object in multiple editor scenarios.</li>
|
||||||
the garbage filter in Paste from Word dialog.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2525">#2525</a>] Fixed
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2327">#2327</a>] Fixed
|
JavaScript error in Google Chrome when StartupShowBlocks is set to true.</li>
|
||||||
invalid HTML in the Paste dialog.</li>
|
<li>Language file updates for the following languages:
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1907">#1907</a>] Fixed
|
<ul>
|
||||||
sporadic "FCKeditorAPI is not defined" errors in Firefox 3.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2440">#2440</a>] Dutch</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2356">#2356</a>] Fixed
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2451">#2451</a>] Basque</li>
|
||||||
access denied error in IE7 when FCKeditor is launched from local filesystem.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2451">#2650</a>] Danish</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1150">#1150</a>] Fixed
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2208">#2535</a>] German
|
||||||
the type="_moz" attribute that sometimes appear in <br> tags in non-IE browsers.</li>
|
</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1229">#1229</a>] Converting
|
</ul>
|
||||||
multiple contiguous paragraphs to Formatted will now be merged into a single <PRE>
|
</li>
|
||||||
block.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2531">#2531</a>] The ENTER
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2363">#2363</a>] There
|
key will properly scroll to the cursor position when breaking long paragraphs.</li>
|
||||||
were some sporadic "Permission Denied" errors with IE on some situations.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2573">#2573</a>] The type
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2135">#2135</a>] Fixed
|
name in configurations for the ASP connector are now case sensitive.</li>
|
||||||
a data loss bug in IE when there are @import statements in the editor's CSS files,
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2503">#2503</a>] DL, DT
|
||||||
and IE's cache is set to "Check for newer versions on every visit".</li>
|
and DD where missing the formatting in the generated HTML.</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2376">#2376</a>] FCK.InsertHtml()
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2516">#2516</a>] Replaced
|
||||||
will now insert to the last selected position after the user has selected things
|
the extension AddItem of Array with the standard "push" method.</li>
|
||||||
outside of FCKeditor, in IE.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2486">#2486</a>] Vertically
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2368">#2368</a>] Fixed
|
splitting cell with colspan > 1 breaks table layout.</li>
|
||||||
broken protect source logic for comments in IE.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2597">#2597</a>] Fixed
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2387">#2387</a>] Fixed
|
the issue where dropping contents from outside of the editor doesn't work in Safari.</li>
|
||||||
JavaScript error with list commands when the editable document is selected with
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2412">#2412</a>] Fixed
|
||||||
Ctrl-A.</li>
|
the issue where FCK.InsertHtml() is no longer removing selected contents after content
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2390">#2390</a>] Fixed
|
insertion in Firefox.</li>
|
||||||
the issue where indent styles in JavaScript-generated <p> blocks are erased
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2407">#2407</a>] Fixed
|
||||||
|
the issue where the Div container command and the blockquote command would break
|
||||||
|
lists.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2469">#2469</a>] Fixed
|
||||||
|
a minor issue where FCK.SetData() may cause the editor to become unresponsive to
|
||||||
|
the first click after being defocused.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2611">#2611</a>] Fixed
|
||||||
|
an extra slash on quickupload of the asp connector.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2616">#2616</a>] Fixed
|
||||||
|
another situation where new elements were inserted at the beginning of the content
|
||||||
in IE.</li>
|
in IE.</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2394">#2394</a>] Fixed
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2634">#2634</a>] Fixed
|
||||||
JavaScript error with the "split vertically" command in IE when attempting to split
|
two obsolete references to Array::AddItem() instances still in the code.</li>
|
||||||
cells in the last row of a table.</li>
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2679">#2679</a>] Fixed
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2316">#2316</a>] The sample
|
infinite loop problems with FCKDomRangeIterator class which causes some commands
|
||||||
posted data page has now the table fixed at 100% width. </li>
|
to hang when applied to certain document structures.</li>
|
||||||
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2396">#2396</a>] SpellerPages
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2649">#2649</a>] Fixed
|
||||||
was causing a "Permission Denied" error in some situations. </li>
|
a JavaScript error in IE when user tries to search with the "Match whole word" option
|
||||||
|
enabled and the matched word is at exactly the end of document.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2603">#2603</a>] Changed
|
||||||
|
the <a href="http://docs.fckeditor.net/EMailProtection">EMailProtection</a> to "none"
|
||||||
|
for better compatibility.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2612">#2612</a>] The 'ForcePasteAsPlainText'
|
||||||
|
configuration option didn't work correctly in Safari and Chrome.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2696">#2696</a>] Fixed
|
||||||
|
non-working autogrow plugin.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2753">#2753</a>] Fixed
|
||||||
|
occasional exceptions in the dragersizetable plugin with IE.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2653">#2653</a>] and [<a
|
||||||
|
target="_blank" href="http://dev.fckeditor.net/ticket/2733">#2733</a>] Enable undo
|
||||||
|
of changes to tables and table cells.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1865">#1865</a>] The context
|
||||||
|
menu is now working properly over the last row in a table with thead. Thanks to
|
||||||
|
Koen Willems.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
<a href="_whatsnew_history.html">See previous versions history</a></p>
|
<a href="_whatsnew_history.html">See previous versions history</a></p>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<!--
|
<!--
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
@ -32,6 +32,135 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>
|
<h1>
|
||||||
FCKeditor ChangeLog - What's New?</h1>
|
FCKeditor ChangeLog - What's New?</h1>
|
||||||
|
<h3>
|
||||||
|
Version 2.6.3</h3>
|
||||||
|
<p>
|
||||||
|
Fixed Bugs:</p>
|
||||||
|
<ul>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2412">#2412</a>] FCK.InsertHtml()
|
||||||
|
is now properly removing selected contents after content insertion in Firefox.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2420">#2420</a>] Spelling
|
||||||
|
mistake corrections made by the spell checking dialog are now undoable. </li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2411">#2411</a>] Insert
|
||||||
|
anchor was not working for non-empty selections.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2426">#2426</a>] It was
|
||||||
|
impossible to switch between editor areas with a single click.</li>
|
||||||
|
<li>Language file updates for the following languages:
|
||||||
|
<ul>
|
||||||
|
<li>Canadian French</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2402">#2402</a>] Catalan
|
||||||
|
</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2400">#2400</a>] Chinese
|
||||||
|
(Simplified and Traditional)</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2401">#2401</a>] Croatian</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2422">#2422</a>] Czech</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2417">#2417</a>] Dutch</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2428">#2428</a>] French</li>
|
||||||
|
<li>German</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2427">#2427</a>] Hebrew</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2410">#2410</a>] Hindi</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2405">#2405</a>] Japanese</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2409">#2409</a>] Norwegian
|
||||||
|
and Norwegian Bokmål</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2429">#2429</a>] Spanish</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2406">#2406</a>] Vietnamese</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
This version has been sponsored by <a href="http://www.dataillusion.com/fs/">Data Illusion
|
||||||
|
survey software solutions</a>.</p>
|
||||||
|
<h3>
|
||||||
|
Version 2.6.3 Beta</h3>
|
||||||
|
<p>
|
||||||
|
New Features and Improvements:</p>
|
||||||
|
<ul>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/439">#439</a>] Added a
|
||||||
|
new <strong>context menu option for opening links</strong> in the editor.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2220">#2220</a>] <strong>
|
||||||
|
Email links</strong> from the Link dialog <strong>are now encoded</strong> by default
|
||||||
|
to prevent being harvested by spammers. (Kudos to asuter for proposing the patch)
|
||||||
|
</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2234">#2234</a>] Added
|
||||||
|
the ability to create, modify and remove <strong>DIV containers</strong>. </li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2247">#2247</a>] The <strong>
|
||||||
|
SHIFT+SPACE</strong> keystroke will now <strong>produce a &nbsp;</strong> character.
|
||||||
|
</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2252">#2252</a>] It's
|
||||||
|
now possible to enable the browsers default menu using the configuration file (FCKConfig.BrowserContextMenu
|
||||||
|
option). </li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2032">#2032</a>] Added
|
||||||
|
HTML samples for legacy HTML and Flash HTML. </li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/234">#234</a>] Introduced
|
||||||
|
the "PreventSubmitHandler" setting, which makes it possible to instruct the editor
|
||||||
|
to not handle the hidden field update on form submit events.</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Fixed Bugs:</p>
|
||||||
|
<ul>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2319">#2319</a>] On Opera
|
||||||
|
and Firefox 3, the entire page was scrolling on SHIFT+ENTER, or when EnterMode='br'.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2321">#2321</a>] On Firefox
|
||||||
|
3, the entire page was scrolling when inserting block elements with the FCK.InsertElement
|
||||||
|
function, used by the Table and Horizontal Rule buttons.. </li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/692">#692</a>] Added some
|
||||||
|
hints in editor/css/fck_editorarea.css on how to handle style items that would break
|
||||||
|
the style combo. </li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2263">#2263</a>] Fixed
|
||||||
|
a JavaScript error in IE which occurs when there are placeholder elements in the
|
||||||
|
document and the user has pressed the Source button.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2314">#2314</a>] Corrected
|
||||||
|
mixed up Chinese translations for the blockquote command.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2323">#2323</a>] Fixed
|
||||||
|
the issue where the show blocks command loses the current selection from the view
|
||||||
|
area when editing a long document.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2322">#2322</a>] Fixed
|
||||||
|
the issue where the fit window command loses the current selection and scroll position
|
||||||
|
in the editing area.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1917">#1917</a>] Fixed
|
||||||
|
the issue where the merge down command for tables cells does not work in IE for
|
||||||
|
more than two cells.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2320">#2320</a>] Fixed
|
||||||
|
the issue where the Find/Replace dialog scrolls the entire page.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1645">#1645</a>] Added
|
||||||
|
warning message about Firefox 3's strict origin policy.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2272">#2272</a>] Improved
|
||||||
|
the garbage filter in Paste from Word dialog.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2327">#2327</a>] Fixed
|
||||||
|
invalid HTML in the Paste dialog.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1907">#1907</a>] Fixed
|
||||||
|
sporadic "FCKeditorAPI is not defined" errors in Firefox 3.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2356">#2356</a>] Fixed
|
||||||
|
access denied error in IE7 when FCKeditor is launched from local filesystem.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1150">#1150</a>] Fixed
|
||||||
|
the type="_moz" attribute that sometimes appear in <br> tags in non-IE browsers.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1229">#1229</a>] Converting
|
||||||
|
multiple contiguous paragraphs to Formatted will now be merged into a single <PRE>
|
||||||
|
block.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2363">#2363</a>] There
|
||||||
|
were some sporadic "Permission Denied" errors with IE on some situations.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2135">#2135</a>] Fixed
|
||||||
|
a data loss bug in IE when there are @import statements in the editor's CSS files,
|
||||||
|
and IE's cache is set to "Check for newer versions on every visit".</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2376">#2376</a>] FCK.InsertHtml()
|
||||||
|
will now insert to the last selected position after the user has selected things
|
||||||
|
outside of FCKeditor, in IE.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2368">#2368</a>] Fixed
|
||||||
|
broken protect source logic for comments in IE.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2387">#2387</a>] Fixed
|
||||||
|
JavaScript error with list commands when the editable document is selected with
|
||||||
|
Ctrl-A.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2390">#2390</a>] Fixed
|
||||||
|
the issue where indent styles in JavaScript-generated <p> blocks are erased
|
||||||
|
in IE.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2394">#2394</a>] Fixed
|
||||||
|
JavaScript error with the "split vertically" command in IE when attempting to split
|
||||||
|
cells in the last row of a table.</li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2316">#2316</a>] The sample
|
||||||
|
posted data page has now the table fixed at 100% width. </li>
|
||||||
|
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2396">#2396</a>] SpellerPages
|
||||||
|
was causing a "Permission Denied" error in some situations. </li>
|
||||||
|
</ul>
|
||||||
<h3>
|
<h3>
|
||||||
Version 2.6.2</h3>
|
Version 2.6.2</h3>
|
||||||
<p>
|
<p>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
@ -469,13 +469,13 @@ FCKDomRange.prototype =
|
|||||||
// Also note that the node that we use for "address base" would change during backtracking.
|
// Also note that the node that we use for "address base" would change during backtracking.
|
||||||
var addrStart = this._Range.startContainer ;
|
var addrStart = this._Range.startContainer ;
|
||||||
var addrEnd = this._Range.endContainer ;
|
var addrEnd = this._Range.endContainer ;
|
||||||
while ( curStart && addrStart.nodeType == 3 )
|
while ( curStart && curStart.nodeType == 3 && addrStart.nodeType == 3 )
|
||||||
{
|
{
|
||||||
bookmark.Start[0] += curStart.length ;
|
bookmark.Start[0] += curStart.length ;
|
||||||
addrStart = curStart ;
|
addrStart = curStart ;
|
||||||
curStart = curStart.previousSibling ;
|
curStart = curStart.previousSibling ;
|
||||||
}
|
}
|
||||||
while ( curEnd && addrEnd.nodeType == 3 )
|
while ( curEnd && curEnd.nodeType == 3 && addrEnd.nodeType == 3 )
|
||||||
{
|
{
|
||||||
bookmark.End[0] += curEnd.length ;
|
bookmark.End[0] += curEnd.length ;
|
||||||
addrEnd = curEnd ;
|
addrEnd = curEnd ;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
@ -136,7 +136,7 @@ FCKDomRangeIterator.prototype =
|
|||||||
// The found boundary must be set as the next one at this
|
// The found boundary must be set as the next one at this
|
||||||
// point. (#1717)
|
// point. (#1717)
|
||||||
if ( nodeName != 'br' )
|
if ( nodeName != 'br' )
|
||||||
this._NextNode = FCKDomTools.GetNextSourceNode( currentNode, true, null, lastNode ) ;
|
this._NextNode = FCKDomTools.GetNextSourceNode( currentNode, true, null, lastNode ) || currentNode ;
|
||||||
}
|
}
|
||||||
|
|
||||||
closeRange = true ;
|
closeRange = true ;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
@ -531,7 +531,27 @@ FCKEnterKey.prototype._ExecuteEnterBlock = function( blockTag, range )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( FCKBrowserInfo.IsGeckoLike )
|
if ( FCKBrowserInfo.IsGeckoLike )
|
||||||
|
{
|
||||||
|
if ( eNextBlock )
|
||||||
|
{
|
||||||
|
// If we have split the block, adds a temporary span at the
|
||||||
|
// range position and scroll relatively to it.
|
||||||
|
var tmpNode = this.Window.document.createElement( 'span' ) ;
|
||||||
|
|
||||||
|
// We need some content for Safari.
|
||||||
|
tmpNode.innerHTML = ' ';
|
||||||
|
|
||||||
|
oRange.InsertNode( tmpNode ) ;
|
||||||
|
FCKDomTools.ScrollIntoView( tmpNode, false ) ;
|
||||||
|
oRange.DeleteContents() ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// We may use the above scroll logic for the new block case
|
||||||
|
// too, but it gives some weird result with Opera.
|
||||||
FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ;
|
FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
oRange.Select() ;
|
oRange.Select() ;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
@ -71,7 +71,7 @@ FCKHtmlIterator.prototype =
|
|||||||
} ;
|
} ;
|
||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||||
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||||
*
|
*
|
||||||
* == BEGIN LICENSE ==
|
* == BEGIN LICENSE ==
|
||||||
*
|
*
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user