3
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
8
* Licensed under the terms of any of the following licenses at your
11
* - GNU General Public License Version 2 or later (the "GPL")
12
* http://www.gnu.org/licenses/gpl.html
14
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
* http://www.gnu.org/licenses/lgpl.html
17
* - Mozilla Public License Version 1.1 or later (the "MPL")
18
* http://www.mozilla.org/MPL/MPL-1.1.html
25
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
28
<title>FCKeditor - Sample</title>
29
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
30
<meta name="robots" content="noindex, nofollow">
31
<link href="../sample.css" rel="stylesheet" type="text/css" />
32
<script type="text/javascript">
34
function FCKeditor_OnComplete( editorInstance )
36
var oCombo = document.getElementById( 'cmbToolbars' ) ;
37
oCombo.value = editorInstance.ToolbarSet.Name ;
38
oCombo.style.visibility = '' ;
41
function ChangeToolbar( toolbarName )
43
window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
49
<h1>FCKeditor - Lasso - Sample 3</h1>
50
This sample shows how to change the editor toolbar.
52
<table cellpadding="0" cellspacing="0" border="0">
55
Select the toolbar to load:
58
<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
59
<option value="Default" selected>Default</option>
60
<option value="Basic">Basic</option>
66
<form action="sampleposteddata.lasso" method="post" target="_blank">
68
include('../../fckeditor.lasso');
69
var('basepath') = response_filepath->split('_samples')->get(1);
71
var('myeditor') = fck_editor(
72
-instancename='FCKeditor1',
74
-initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
77
if(action_param('Toolbar'));
78
$myeditor->toolbarset = action_param('Toolbar');
84
<input type="submit" value="Submit">