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: sample04.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( 'cmbSkins' ) ;
34
// Get the active skin.
35
var sSkin = editorInstance.Config['SkinPath'] ;
36
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
38
oCombo.value = sSkin ;
39
oCombo.style.visibility = '' ;
42
function ChangeSkin( skinName )
44
window.location.href = window.location.pathname + "?Skin=" + skinName ;
50
<h1>FCKeditor - Lasso - Sample 4</h1>
51
This sample shows how to change the editor skin.
53
<table cellpadding="0" cellspacing="0" border="0">
56
Select the skin to load:
59
<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
60
<option value="default" selected>Default</option>
61
<option value="office2003">Office 2003</option>
62
<option value="silver">Silver</option>
68
<form action="sampleposteddata.lasso" method="post" target="_blank">
70
include('../../fckeditor.lasso');
71
var('basepath') = response_filepath->split('_samples')->get(1);
73
var('myeditor') = fck_editor(
74
-instancename='FCKeditor1',
76
-initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
79
if(action_param('Skin'));
80
$myeditor->config = array('SkinPath' = $basepath + 'editor/skins/' + action_param('Skin') + '/');
86
<input type="submit" value="Submit">