comparison wiki/htdocs/applets/FCKeditor/_samples/lasso/sample03.lasso @ 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 79dbcefdff31
comparison
equal deleted inserted replaced
-1:000000000000 0:77665d8e2254
1 [//lasso
2 /*
3
4 * FCKeditor - The text editor for internet
5
6 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
7
8 *
9
10 * Licensed under the terms of the GNU Lesser General Public License:
11
12 * http://www.opensource.org/licenses/lgpl-license.php
13
14 *
15
16 * For further information visit:
17
18 * http://www.fckeditor.net/
19
20 *
21
22 * File Name: sample03.lasso
23
24 * Sample page.
25
26 *
27
28 * File Authors:
29 * Frederico Caldeira Knabben (fredck@fckeditor.net)
30
31 * Jason Huck (jason.huck@corefive.com)
32
33 */
34
35 ]
36 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
37 <html>
38 <head>
39 <title>FCKeditor - Sample</title>
40 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
41 <meta name="robots" content="noindex, nofollow">
42 <link href="../sample.css" rel="stylesheet" type="text/css" />
43 <script type="text/javascript">
44 <!--
45 function FCKeditor_OnComplete( editorInstance )
46 {
47 var oCombo = document.getElementById( 'cmbToolbars' ) ;
48 oCombo.value = editorInstance.ToolbarSet.Name ;
49 oCombo.style.visibility = '' ;
50 }
51
52 function ChangeToolbar( toolbarName )
53 {
54 window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
55 }
56 //-->
57 </script>
58 </head>
59 <body>
60 <h1>FCKeditor - Lasso - Sample 3</h1>
61 This sample shows how to change the editor toolbar.
62 <hr>
63 <table cellpadding="0" cellspacing="0" border="0">
64 <tr>
65 <td>
66 Select the toolbar to load:&nbsp;
67 </td>
68 <td>
69 <select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
70 <option value="Default" selected>Default</option>
71 <option value="Basic">Basic</option>
72 </select>
73 </td>
74 </tr>
75 </table>
76 <br>
77 <form action="sampleposteddata.lasso" method="post" target="_blank">
78 [//lasso
79 include('../../fckeditor.lasso');
80 var('basepath') = response_filepath->split('_samples')->get(1);
81
82 var('myeditor') = fck_editor(
83 -instancename='FCKeditor1',
84 -basepath=$basepath,
85 -initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
86 );
87
88 if(action_param('Toolbar'));
89 $myeditor->toolbarset = action_param('Toolbar');
90 /if;
91
92 $myeditor->create;
93 ]
94 <br>
95 <input type="submit" value="Submit">
96 </form>
97 </body>
98 </html>