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( 'cmbLanguages' ) ;
37
for ( code in editorInstance.Language.AvailableLanguages )
39
AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
41
oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
44
function AddComboOption(combo, optionText, optionValue)
46
var oOption = document.createElement("OPTION") ;
48
combo.options.add(oOption) ;
50
oOption.innerHTML = optionText ;
51
oOption.value = optionValue ;
56
function ChangeLanguage( languageCode )
58
window.location.href = window.location.pathname + "?Lang=" + languageCode ;
64
<h1>FCKeditor - Lasso - Sample 2</h1>
65
This sample shows the editor in all its available languages.
67
<table cellpadding="0" cellspacing="0" border="0">
70
Select a language:
73
<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
79
<form action="sampleposteddata.lasso" method="post" target="_blank">
81
include('../../fckeditor.lasso');
82
var('basepath') = response_filepath->split('_samples')->get(1);
84
if(action_param('Lang'));
85
var('config') = array(
86
'AutoDetectLanguage' = 'false',
87
'DefaultLanguage' = action_param('Lang')
90
var('config') = array(
91
'AutoDetectLanguage' = 'true',
92
'DefaultLanguage' = 'en'
96
var('myeditor') = fck_editor(
97
-instancename='FCKeditor1',
100
-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
106
<input type="submit" value="Submit">