3
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
* Copyright (C) 2003-2008 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( 'cmbSkins' ) ;
38
// Get the active skin.
39
var sSkin = editorInstance.Config['SkinPath'] ;
40
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
42
oCombo.value = sSkin ;
43
oCombo.style.visibility = '' ;
46
function ChangeSkin( skinName )
48
window.location.href = window.location.pathname + "?Skin=" + skinName ;
54
<h1>FCKeditor - Lasso - Sample 4</h1>
55
This sample shows how to change the editor skin.
57
<table cellpadding="0" cellspacing="0" border="0">
60
Select the skin to load:
63
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
64
<option value="default" selected>Default</option>
65
<option value="office2003">Office 2003</option>
66
<option value="silver">Silver</option>
72
<form action="sampleposteddata.lasso" method="post" target="_blank">
74
include('../../fckeditor.lasso');
75
var('basepath') = response_filepath->split('_samples')->get(1);
77
var('myeditor') = fck_editor(
78
-instancename='FCKeditor1',
80
-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
83
if(action_param('Skin'));
84
$myeditor->config = array('SkinPath' = $basepath + 'editor/skins/' + action_param('Skin') + '/');
90
<input type="submit" value="Submit">