1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3
* FCKeditor - The text editor for internet
4
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
6
* Licensed under the terms of the GNU Lesser General Public License:
7
* http://www.opensource.org/licenses/lgpl-license.php
9
* For further information visit:
10
* http://www.fckeditor.net/
12
* "Support Open Source software. What about a donation today?"
18
* Frederico Caldeira Knabben (fredck@fckeditor.net)
22
<title>FCKeditor - Sample</title>
23
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
24
<meta name="robots" content="noindex, nofollow">
25
<link href="testcases.css" rel="stylesheet" type="text/css">
26
<script type="text/javascript" src="../fckeditor.js"></script>
29
<h1>FCKeditor - Test 006</h1>
31
<STRONG>Expected results</STRONG>: The editor content must be loaded and the
32
submit button must post the editors html. No javascript errors should be thorwn
33
(security errors).<BR>
34
<STRONG>Configurations</STRONG>: BaseHref = http://www.fckeditor.net / FullPage
37
<STRONG>Steps to Reproduce</STRONG>:
41
Wait the editor to load.
43
Create a table with border = 0 and an anchor.
45
Create an image and points it to /images/logotop.gif
47
Paste the following CSS tag in the source: <link href="/css/main.css" type="text/css" rel="stylesheet" />
49
Check the WYSIWYG mode.
51
Hit submit button and check the posted data.</LI></OL>
55
<form action="sampleposteddata.asp" method="post" target="_blank">
56
<script type="text/javascript">
58
// Automatically calculates the editor base path based on the _samples directory.
59
// This is usefull only for these samples. A real application should use something like this:
60
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
61
var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
63
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
64
oFCKeditor.BasePath = sBasePath ;
65
oFCKeditor.Config['FullPage'] = true ;
66
oFCKeditor.Config['BaseHref'] = 'http://www.fckeditor.net' ;
67
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>' ;
72
<input type="submit" value="Submit">