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: sample02.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( 'cmbLanguages' ) ;
33
for ( code in editorInstance.Language.AvailableLanguages )
35
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
37
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
40
function AddComboOption(combo, optionText, optionValue)
42
var oOption = document.createElement("OPTION") ;
44
combo.options.add(oOption) ;
46
oOption.innerHTML = optionText ;
47
oOption.value = optionValue ;
52
function ChangeLanguage( languageCode )
54
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
60
<h1>FCKeditor - Lasso - Sample 2</h1>
61
This sample shows the editor in all its available languages.
63
<table cellpadding="0" cellspacing="0" border="0">
66
Select a language:
69
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
75
<form action="sampleposteddata.lasso" method="post" target="_blank">
77
include('../../fckeditor.lasso');
78
var('basepath') = response_filepath->split('_samples')->get(1);
80
if(action_param('Lang'));
81
var('config') = array(
82
'AutoDetectLanguage' = 'false',
83
'DefaultLanguage' = action_param('Lang')
86
var('config') = array(
87
'AutoDetectLanguage' = 'true',
88
'DefaultLanguage' = 'en'
92
var('myeditor') = fck_editor(
93
-instancename='FCKeditor1',
96
-initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
102
<input type="submit" value="Submit">