comparison wiki/htdocs/applets/FCKeditor/_testcases/001.html @ 0:77665d8e2254

tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0 (automatically generated log message) imported from: moin--main--1.5--base-0
author Thomas Waldmann <tw-public@gmx.de>
date Thu, 22 Sep 2005 15:09:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:77665d8e2254
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <!--
3 * FCKeditor - The text editor for internet
4 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
5 *
6 * Licensed under the terms of the GNU Lesser General Public License:
7 * http://www.opensource.org/licenses/lgpl-license.php
8 *
9 * For further information visit:
10 * http://www.fckeditor.net/
11 *
12 * "Support Open Source software. What about a donation today?"
13 *
14 * File Name: 001.html
15 * Test page.
16 *
17 * File Authors:
18 * Frederico Caldeira Knabben (fredck@fckeditor.net)
19 -->
20 <html>
21 <head>
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>
27 <script>
28
29 function SubmitForm()
30 {
31 document.forms[0].submit() ;
32 }
33
34 </script>
35 </head>
36 <body>
37 <h1>FCKeditor - Test 001</h1>
38 <P>
39 <STRONG>Expected results</STRONG>: The editor content must be loaded and the
40 submit button must post the editors html.<BR>
41 <STRONG>Configurations</STRONG>: Default<BR>
42 <STRONG>Steps to&nbsp;Reproduce</STRONG>:
43 </P>
44 <OL>
45 <LI>
46 Wait the editor to load.</LI>
47 <LI>
48 Hit submit button and check the posted data.</LI></OL>
49 <P>
50 <hr>
51 </P>
52 <form action="sampleposteddata.asp" method="post" target="_blank">
53 <script type="text/javascript">
54 <!--
55 // Automatically calculates the editor base path based on the _samples directory.
56 // This is usefull only for these samples. A real application should use something like this:
57 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
58 var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ;
59
60 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
61 oFCKeditor.BasePath = sBasePath ;
62 oFCKeditor.Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
63 oFCKeditor.Create() ;
64 //-->
65 </script>
66 <br>
67 <input type="submit" value="Submit"> <input type="button" value="Submit by Code" onclick="SubmitForm();">
68 </form>
69 </body>
70 </html>