source: sandbox/filemanager/tp/fckeditor/_samples/html/sample10.html @ 1575

Revision 1575, 2.8 KB checked in by amuller, 14 years ago (diff)

Ticket #597 - Implentação, melhorias do modulo gerenciador de arquivos

  • Property svn:executable set to *
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-2009 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        <link href="../sample.css" rel="stylesheet" type="text/css" />
30        <script type="text/javascript" src="../../fckeditor.js"></script>
31</head>
32<body>
33        <h1>
34                FCKeditor - JavaScript - Sample 10</h1>
35        <div>
36                This sample shows a form with two FCKeditor instance. Both instances share the same
37                toolbar, available in the top.
38        </div>
39        <hr />
40        <div id="xToolbar"></div>
41        <hr />
42        <form action="../php/sampleposteddata.php" method="post" target="_blank">
43                Normal text field:<br />
44                <input name="NormaText" value="Plain Text" />
45                <br />
46                <br />
47                FCKeditor 1:
48                <script type="text/javascript">
49<!--
50// Automatically calculates the editor base path based on the _samples directory.
51// This is usefull only for these samples. A real application should use something like this:
52// oFCKeditor.BasePath = '/fckeditor/' ;        // '/fckeditor/' is the default value.
53var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
54
55var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
56oFCKeditor.BasePath     = sBasePath ;
57oFCKeditor.Height = 100 ;
58oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
59oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
60oFCKeditor.Create() ;
61//-->
62                </script>
63                <br />
64                FCKeditor 2:
65                <script type="text/javascript">
66<!--
67oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ;
68oFCKeditor.BasePath     = sBasePath ;
69oFCKeditor.Height = 100 ;
70oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
71oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
72oFCKeditor.Create() ;
73//-->
74                </script>
75                <br />
76                <input type="submit" value="Submit" />
77        </form>
78</body>
79</html>
Note: See TracBrowser for help on using the repository browser.