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

Revision 1575, 2.3 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        <script type="text/javascript">
32
33window.onload = function()
34{
35        // Automatically calculates the editor base path based on the _samples directory.
36        // This is usefull only for these samples. A real application should use something like this:
37        // oFCKeditor.BasePath = '/fckeditor/' ;        // '/fckeditor/' is the default value.
38        var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
39
40        var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
41        oFCKeditor.BasePath     = sBasePath ;
42        oFCKeditor.ReplaceTextarea() ;
43}
44
45        </script>
46</head>
47<body>
48        <h1>
49                FCKeditor - JavaScript - Sample 2</h1>
50        <div>
51                This sample displays a normal HTML form with an FCKeditor with full features enabled.
52                It uses the "ReplaceTextarea" command to create the editor.
53        </div>
54        <hr />
55        <form action="../php/sampleposteddata.php" method="post" target="_blank">
56                <div>
57                        <textarea name="FCKeditor1" rows="10" cols="80" style="width: 100%; height: 200px">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;</textarea>
58                </div>
59                <br />
60                <input type="submit" value="Submit" />
61        </form>
62</body>
63</html>
Note: See TracBrowser for help on using the repository browser.