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

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/_samples/lasso/sample03.lasso

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