~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/_samples/html/sample02.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
 * FCKeditor - The text editor for internet
 
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
4
 * 
 
5
 * Licensed under the terms of the GNU Lesser General Public License:
 
6
 *              http://www.opensource.org/licenses/lgpl-license.php
 
7
 * 
 
8
 * For further information visit:
 
9
 *              http://www.fckeditor.net/
 
10
 * 
 
11
 * "Support Open Source software. What about a donation today?"
 
12
 * 
 
13
 * File Name: sample02.html
 
14
 *      Sample page.
 
15
 * 
 
16
 * File Authors:
 
17
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
18
-->
 
19
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
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="../sample.css" rel="stylesheet" type="text/css" />
 
26
                <script type="text/javascript" src="../../fckeditor.js"></script>
 
27
                <script type="text/javascript">
 
28
 
 
29
window.onload = function()
 
30
{
 
31
        // Automatically calculates the editor base path based on the _samples directory.
 
32
        // This is usefull only for these samples. A real application should use something like this:
 
33
        // oFCKeditor.BasePath = '/fckeditor/' ;        // '/fckeditor/' is the default value.
 
34
        var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
 
35
 
 
36
        var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
 
37
        oFCKeditor.BasePath     = sBasePath ;
 
38
        oFCKeditor.ReplaceTextarea() ;
 
39
}
 
40
 
 
41
                </script>
 
42
        </head>
 
43
        <body>
 
44
                <h1>FCKeditor - Javascript - Sample 2</h1>
 
45
                This sample displays a normal HTML form with an FCKeditor with full features 
 
46
                enabled. It uses the "ReplaceTextarea" command to create the editor.
 
47
                <hr>
 
48
                <form action="sampleposteddata.asp" method="post" target="_blank">
 
49
                        <div>
 
50
                                <textarea name="FCKeditor1" style="WIDTH: 100%; HEIGHT: 200px">This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</textarea>
 
51
                        </div>
 
52
                        <br>
 
53
                        <input type="submit" value="Submit">
 
54
                </form>
 
55
        </body>
 
56
</html>