Ticket #779: TC_779_iframe.html

File TC_779_iframe.html, 2.4 KB (added by Wojciech Olchawa, 17 years ago)
Line 
1<!--
2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
4 *
5 * == BEGIN LICENSE ==
6 *
7 * Licensed under the terms of any of the following licenses at your
8 * choice:
9 *
10 *  - GNU General Public License Version 2 or later (the "GPL")
11 *    http://www.gnu.org/licenses/gpl.html
12 *
13 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14 *    http://www.gnu.org/licenses/lgpl.html
15 *
16 *  - Mozilla Public License Version 1.1 or later (the "MPL")
17 *    http://www.mozilla.org/MPL/MPL-1.1.html
18 *
19 * == END LICENSE ==
20 *
21 * Sample page.
22-->
23<html xmlns="http://www.w3.org/1999/xhtml">
24<head>
25        <title>FCKeditor - Sample</title>
26        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27        <meta name="robots" content="noindex, nofollow" />
28        <link href="../sample.css" rel="stylesheet" type="text/css" />
29        <script type="text/javascript" src="../../fckeditor.js"></script>
30</head>
31<body>
32        <form action="TC_779_iframe.html" method="post">
33                Normal text field:<br />
34                <input name="NormaText" value="Plain Text" />
35                <br />
36                <br />
37                FCKeditor 1:
38                <script type="text/javascript">
39<!--
40// Automatically calculates the editor base path based on the _samples directory.
41// This is usefull only for these samples. A real application should use something like this:
42// oFCKeditor.BasePath = '/fckeditor/' ;        // '/fckeditor/' is the default value.
43var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
44
45var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
46oFCKeditor.BasePath = sBasePath;
47oFCKeditor.Height = 100 ;
48oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ;
49oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
50oFCKeditor.Create() ;
51//-->
52                </script>
53                <br />
54                FCKeditor 2:
55                <script type="text/javascript">
56<!--
57oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ;
58oFCKeditor.BasePath = sBasePath;
59oFCKeditor.Height = 100 ;
60oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ;
61oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
62oFCKeditor.Create() ;
63//-->
64                </script>
65                <br />
66                <input type="submit" value="Submit" />
67        </form>
68</body>
69</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy