first commit

This commit is contained in:
schwaral
2022-11-25 07:07:16 +01:00
commit c086b964da
3188 changed files with 1063828 additions and 0 deletions

View File

@ -0,0 +1,72 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 001.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../fckeditor.js"></script>
<script>
function SubmitForm()
{
document.forms[0].submit() ;
}
</script>
</head>
<body>
<h1>
FCKeditor - Test 001</h1>
<p>
<strong>Expected results</strong>: The editor content must be loaded and the submit
button must post the editors html.<br>
<strong>Configurations</strong>: Default<br>
<strong>Steps to&nbsp;Reproduce</strong>:
</p>
<ol>
<li>Wait the editor to load.</li>
<li>Hit the "submit" button and check the posted data.</li>
<li>Hit the "submit by code" button and check the posted data.</li>
</ol>
<p>
<hr>
</p>
<form action="sampleposteddata.asp" 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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
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>.' ;
oFCKeditor.Create() ;
//-->
</script>
<br>
<input type="submit" value="Submit">
<input type="button" value="Submit by Code" onclick="SubmitForm();">
</form>
</body>
</html>

View File

@ -0,0 +1,70 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 002.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../fckeditor.js"></script>
</head>
<body>
<h1>FCKeditor - Test 002</h1>
<P><STRONG>Expected results</STRONG>: The editor must work correctly when not value
has been set<BR>
<STRONG>Configurations</STRONG>: Default<BR>
<STRONG>Steps to Reproduce</STRONG>:
</P>
<OL>
<LI>
Wait the editor to load.
<LI>
Type some text and format it (use the "Bold" and&nbsp;"Style" commands).
<LI>
Check the toolbar buttons context sensitiveness.
<LI>
Switch to Source mode.
<LI>
Repeat steps 2, 3 and 4.
<LI>
Hit submit button and check the submitted data.
</LI>
</OL>
<P>
<hr>
<P></P>
<form action="sampleposteddata.asp" 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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Create() ;
//-->
</script>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>

View File

@ -0,0 +1,72 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 003.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../fckeditor.js"></script>
</head>
<body>
<h1>FCKeditor - Test 003</h1>
<P><STRONG>Expected results</STRONG>: The user must be able to edit the complete
page html.<BR>
<STRONG>Configurations</STRONG>: FullPage = true ;<BR>
<STRONG>Steps to Reproduce</STRONG>:
</P>
<OL>
<LI>
Wait the editor to load.
<LI>
Type some text.
<LI>
Switch to Source mode.
<LI>
Switch back to WYSIWYG mode.
<LI>
Repeat steps 2, 3 and 4.
<LI>
Hit submit button and check the submitted data.
</LI>
</OL>
<P>
<hr>
<P></P>
<form action="sampleposteddata.asp" 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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Config["FullPage"] = true ;
oFCKeditor.Value = '<html>\n\n<head><title></title></head><body>This is a Full Page editing Test:<br/>This is an image: <img src="' + sBasePath + 'editor/images/smiley/msn/lightbulb.gif" alt=""/></body></html>' ;
oFCKeditor.Create() ;
//-->
</script>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>

View File

@ -0,0 +1,105 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 004.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../fckeditor.js"></script>
<script language="javascript">
function Show()
{
document.getElementById('eEditor').style.display = '' ;
document.getElementById('eNoEditor').style.display = 'none' ;
// This is a hack for Gecko... it stops editing when the editor is hidden.
if ( !document.all )
{
var oEditor = FCKeditorAPI.GetInstance( 'FCKeditor1' ) ;
if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
oEditor.MakeEditable() ;
}
}
function Hide()
{
document.getElementById('eEditor').style.display = 'none' ;
document.getElementById('eNoEditor').style.display = '' ;
}
</script>
</head>
<body>
<h1 id="Prova">FCKeditor - Test 004</h1>
<P>
<STRONG>Expected results</STRONG> : The editor must still work when hidding it
programmatically (through javascript).<BR>
<STRONG>Configurations</STRONG>: Default<BR>
<STRONG>Steps to&nbsp;Reproduce</STRONG>:
</P>
<OL>
<LI>
Wait the page to load.
<LI>
Hit the "Show Editor" button.
<LI>
Insert some text and format it.
<LI>
Hit the "Hide Editor" button.
<LI>
Hit the "Submit" and check the posted HTML.
<LI>
Close the "Submit" window.
<LI>
Hit the "Show Editor" button.
<LI>
Repeat steps 2 and 4.</LI></OL>
<P>
<hr>
<P></P>
<form action="sampleposteddata.asp" method="post" target="_blank">
<div id="eNoEditor">
<input type="button" value="Show Editor" onclick="Show();">
</div>
<div id="eEditor" style="DISPLAY: none">
<input type="button" value="Hide Editor" onclick="Hide();">
<br><br>
<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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
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>.' ;
oFCKeditor.Create() ;
//-->
</script>
</div>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 005.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../fckeditor.js"></script>
</head>
<body>
<h1>FCKeditor - Test 005</h1>
<P>
<STRONG>Expected results</STRONG>: The editor content must be loaded and the
submit button must post the editors html. No javascript errors should be thrown
(security errors).<BR>
<STRONG>Configurations</STRONG>: BaseHref = http://www.fckeditor.net
<BR>
<STRONG>Steps to&nbsp;Reproduce</STRONG>:
</P>
<OL>
<LI>
Wait the editor to load.
<LI>
Create a table with border =
0&nbsp;and an anchor.
<LI>Create an image and points it to /images/logotop.gif
<LI>Hit submit button and check the posted data.</LI></OL>
<P>
<hr>
<P></P>
<form action="sampleposteddata.asp" 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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Config['BaseHref'] = 'http://www.fckeditor.net' ;
oFCKeditor.Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
oFCKeditor.Create() ;
//-->
</script>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>

View File

@ -0,0 +1,75 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 006.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../fckeditor.js"></script>
</head>
<body>
<h1>FCKeditor - Test 006</h1>
<P>
<STRONG>Expected results</STRONG>: The editor content must be loaded and the
submit button must post the editors html. No javascript errors should be thorwn
(security errors).<BR>
<STRONG>Configurations</STRONG>: BaseHref = http://www.fckeditor.net / FullPage
= true
<BR>
<STRONG>Steps to&nbsp;Reproduce</STRONG>:
</P>
<OL>
<LI>
Wait the editor to load.
<LI>
Create a table with border = 0 and an anchor.
<LI>
Create an image and points it to /images/logotop.gif
<LI>
Paste the following CSS tag in the source: &lt;link href="/css/main.css" type="text/css" rel="stylesheet" /&gt;
<LI>
Check the WYSIWYG mode.
<LI>
Hit submit button and check the posted data.</LI></OL>
<P>
<hr>
<P></P>
<form action="sampleposteddata.asp" 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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Config['FullPage'] = true ;
oFCKeditor.Config['BaseHref'] = 'http://www.fckeditor.net' ;
oFCKeditor.Value = '<html><head><title></title></head><body>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>

View File

@ -0,0 +1,64 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 007.html
* Test Page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../fckeditor.js"></script>
</head>
<body>
<h1>FCKeditor - Test 007</h1>
<P>
<STRONG>Expected results</STRONG>: The editor content must be loaded and the
submit button must post the editor's html.<BR>
<STRONG>Configurations</STRONG>: Default<BR>
<STRONG>Steps to&nbsp;Reproduce</STRONG>:
</P>
<OL>
<LI>
Wait the editor to load.
<LI>
Enter some text.
<LI>
Hit submit button and check the posted data.</LI></OL>
<P>
<hr>
<P></P>
<form action="sampleposteddata.asp" 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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Value = '<div></div>' ;
oFCKeditor.Create() ;
//-->
</script>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>

View File

@ -0,0 +1,83 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 008.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../fckeditor.js"></script>
<script type="text/javascript">
function Validate()
{
// Get the editor instance that we want to interact with.
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
// Get the editor contents in XHTML.
if ( oEditor.GetXHTML( false ).length == 0 )
{
alert( 'The "Save" command must not submit if the editor is empty' ) ;
return false ;
}
}
</script>
</head>
<body>
<h1>
FCKeditor - Test 008</h1>
<p>
<strong>Expected results</strong>: The editor content must be loaded and the submit
button must post the editors html.<br />
<strong>Configurations</strong>: Default<br />
<strong>Steps to&nbsp;Reproduce</strong>:
</p>
<ol>
<li>Wait the editor to load.</li>
<li>Select all the content with the mouse and delete it.</li>
<li>Hit the "Save" button - an alert should popup.</li>
<li>Insert some text.</li>
<li>Hit the "Save" button and check the posted data.</li>
<li>Close the data window.</li>
<li>Press the "New Page" button.</li>
<li>Hit the "Save" button - an alert should popup.</li>
</ol>
<p>
<hr />
<p>
</p>
<form action="sampleposteddata.asp" method="post" target="_blank" onsubmit="return Validate();">
<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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
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>.' ;
oFCKeditor.Create() ;
//-->
</script>
</form>
</body>
</html>

View File

@ -0,0 +1,109 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 009.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../fckeditor.js"></script>
<script>
function FCKeditor_OnComplete( editorInstance )
{
// Attach to the event fired when the editor's HTML is set.
editorInstance.Events.AttachEvent( 'OnAfterSetHTML', FCKeditor_OnAfterSetHTML ) ;
}
function FCKeditor_OnAfterSetHTML( editorInstance )
{
// Get the actual color from the combo.
var sColor = document.getElementById('ActualColor').value ;
// Set the color of the editor instance.
editorInstance.EditorDocument.body.style.backgroundColor = sColor ;
}
function SetActualColor()
{
// Get the editor instance that we want to interact with.
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
// Call the event function to set the color.
FCKeditor_OnAfterSetHTML( oEditor ) ;
}
</script>
</head>
<body>
<h1>FCKeditor - Test 009</h1>
<P>
<STRONG>Expected results</STRONG> : The user should be able to background color
of the editor by code.<BR>
<STRONG>Configurations</STRONG>: Default<BR>
<STRONG>Steps to&nbsp;Reproduce</STRONG>:
</P>
<OL>
<LI>
Wait the editor to load.
<LI>
Type some text.
<LI>
Change the background color using the combo.
<LI>
Type more text.
<LI>
Switch to source view.
<LI>
Switch back to WYSIWYG. The background color must be the same.
<LI>
Repeate steps 3 to 6.
<LI>
Submit the form.</LI></OL>
<P>
<hr>
<P>
Select a color for the background:<br>
<select id="ActualColor" onchange="SetActualColor();">
<option value="white" selected>White</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="gold">Gold</option>
</select>
</P>
<form action="sampleposteddata.asp" 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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
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>.' ;
oFCKeditor.Create() ;
//-->
</script>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>

View File

@ -0,0 +1,89 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: 010.html
* Test page.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../fckeditor.js"></script>
<script type="text/javascript">
function SubmitForm()
{
document.forms[0].submit() ;
}
function SetToolbar( toolbarName )
{
// Get the editor instance that we want to interact with.
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
oEditor.ToolbarSet.Load( toolbarName ) ;
}
</script>
</head>
<body>
<h1>
FCKeditor - Test 010</h1>
<p>
<strong>Expected results</strong>: The editor content must be loaded and the the
user must be able to change the toolbar dinamically (without reloading the page).<br />
<strong>Configurations</strong>: Default<br />
<strong>Steps to&nbsp;Reproduce</strong>:
</p>
<ol>
<li>Wait the editor to load.</li>
<li>Select some text and format it.</li>
<li>Select the "Basic" toolbar.</li>
<li>Format more text.</li>
<li>Select the "Default" toolbar.</li>
<li>Go to "Source" view.</li>
<li>Select the "Basic" toolbar.</li>
<li>Select the "Default" toolbar.</li>
<li>Go to "WYSIWYG" view.</li>
<li>Hit submit button and check the posted data.</li></ol>
<hr />
<p>
Select the toolbar you want to load:<br />
<select onchange="SetToolbar( this.value );">
<option value="Default" selected="selected">Default</option>
<option value="Basic">Basic</option>
</select>
</p>
<form action="sampleposteddata.asp" 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.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
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>.' ;
oFCKeditor.Create() ;
//-->
</script>
<br />
<input type="submit" value="Submit" />
</form>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!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
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: sampleposteddata.asp
* This page lists the data posted by a form.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<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="testcases.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&nbsp;&nbsp;</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( Request.Form(sForm) )
End Function
%>

View File

@ -0,0 +1,46 @@
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: testcases.css
* Styles used in the samples pages.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
*/
body, td, input, select, textarea
{
font-size: 12px;
font-family: Arial, Verdana, Sans-Serif;
}
h1
{
font-weight: bold;
font-size: 180%;
margin-bottom: 10px;
}
form
{
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
pre
{
margin:0px;
padding:0px;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}