Ticket #892: sample01.html

File sample01.html, 2.1 KB (added by lxbzmy, 14 years ago)

a test file .just click editarea and paste something

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<!--
3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
5 *
6 * == BEGIN LICENSE ==
7 *
8 * Licensed under the terms of any of the following licenses at your
9 * choice:
10 *
11 *  - GNU General Public License Version 2 or later (the "GPL")
12 *    http://www.gnu.org/licenses/gpl.html
13 *
14 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15 *    http://www.gnu.org/licenses/lgpl.html
16 *
17 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18 *    http://www.mozilla.org/MPL/MPL-1.1.html
19 *
20 * == END LICENSE ==
21 *
22 * Sample page.
23-->
24<html xmlns="http://www.w3.org/1999/xhtml">
25<head>
26        <title>FCKeditor - Sample</title>
27        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28        <meta name="robots" content="noindex, nofollow" />
29        <script type="text/javascript" src="fckeditor.js"></script>
30</head>
31<body>
32        <h1>
33                FCKeditor - JavaScript - Sample 1
34        </h1>
35        <div>
36                This sample displays a normal HTML form with an FCKeditor with full features enabled.
37        </div>
38        <hr />
39        <form action="sampleposteddata.asp" method="post" target="_blank">
40                <script type="text/javascript">
41<!--
42// Automatically calculates the editor base path based on the _samples directory.
43// This is usefull only for these samples. A real application should use something like this:
44// oFCKeditor.BasePath = '/fckeditor/' ;        // '/fckeditor/' is the default value.
45var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('sample01.html'));
46
47var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
48oFCKeditor.BasePath     = sBasePath ;
49
50oFCKeditor.Config['DocType'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
51
52oFCKeditor.Height       = 300 ;
53oFCKeditor.Value        = '' ;
54oFCKeditor.Create() ;
55//-->
56                </script>
57                <br />
58                <input type="submit" value="Submit" />
59        </form>
60</body>
61</html>
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy