comparison wiki/htdocs/applets/FCKeditor/_samples/html/sample06.html @ 0:77665d8e2254

tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0 (automatically generated log message) imported from: moin--main--1.5--base-0
author Thomas Waldmann <tw-public@gmx.de>
date Thu, 22 Sep 2005 15:09:50 +0000
parents
children 645324d706e2
comparison
equal deleted inserted replaced
-1:000000000000 0:77665d8e2254
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: sample06.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 </head>
28 <body>
29 <h1>FCKeditor - Javascript - 6</h1>
30 This sample shows a sample plugin implementation.
31 <br>
32 These are sample "Find" and "Replace" plugin that do exactly the same thing that the built in ones do. Use the green toolbar buttons the test then.
33 <br>
34 There is also another sample plugin that is available in the package: the "Placeholder" command (use the yellow icon).
35 <hr>
36 <form action="sampleposteddata.asp" method="post" target="_blank">
37 <script type="text/javascript">
38 <!--
39 // Automatically calculates the editor base path based on the _samples directory.
40 // This is usefull only for these samples. A real application should use something like this:
41 // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
42 var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/_samples/')+1) ;
43
44 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
45 oFCKeditor.BasePath = sBasePath ;
46
47 // Set the custom configurations file path (in this way the original file is mantained).
48 oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/sample06.config.js' ;
49
50 // Let's use a custom toolbar for this sample.
51 oFCKeditor.ToolbarSet = 'PluginTest' ;
52
53 oFCKeditor.Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
54 oFCKeditor.Create() ;
55 //-->
56 </script>
57 <br>
58 <input type="submit" value="Submit">
59 </form>
60 </body>
61 </html>