3
* FCKeditor - The text editor for internet
4
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
6
* Licensed under the terms of the GNU Lesser General Public License:
7
* http://www.opensource.org/licenses/lgpl-license.php
9
* For further information visit:
10
* http://www.fckeditor.net/
12
* "Support Open Source software. What about a donation today?"
14
* File Name: sample03.lasso
18
* Jason Huck (jason.huck@corefive.com)
21
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
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">
30
function FCKeditor_OnComplete( editorInstance )
32
var oCombo = document.getElementById( 'cmbToolbars' ) ;
33
oCombo.value = editorInstance.ToolbarSet.Name ;
34
oCombo.style.visibility = '' ;
37
function ChangeToolbar( toolbarName )
39
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
45
<h1>FCKeditor - Lasso - Sample 3</h1>
46
This sample shows how to change the editor toolbar.
48
<table cellpadding="0" cellspacing="0" border="0">
51
Select the toolbar to load:
54
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
55
<option value="Default" selected>Default</option>
56
<option value="Basic">Basic</option>
62
<form action="sampleposteddata.lasso" method="post" target="_blank">
64
include('../../fckeditor.lasso');
65
var('basepath') = response_filepath->split('_samples')->get(1);
67
var('myeditor') = fck_editor(
68
-instancename='FCKeditor1',
70
-initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
73
if(action_param('Toolbar'));
74
$myeditor->toolbarset = action_param('Toolbar');
80
<input type="submit" value="Submit">