2
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
3
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
7
* Licensed under the terms of any of the following licenses at your
10
* - GNU General Public License Version 2 or later (the "GPL")
11
* http://www.gnu.org/licenses/gpl.html
13
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14
* http://www.gnu.org/licenses/lgpl.html
16
* - Mozilla Public License Version 1.1 or later (the "MPL")
17
* http://www.mozilla.org/MPL/MPL-1.1.html
23
<html xmlns="http://www.w3.org/1999/xhtml">
25
<title>FCKeditor - Sample</title>
26
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27
<meta name="robots" content="noindex, nofollow" />
28
<link href="../sample.css" rel="stylesheet" type="text/css" />
29
<script type="text/javascript" src="../../../fckeditor.js"></script>
32
<form action="../../php/sampleposteddata.php" method="post" target="_blank">
33
Normal text field:<br />
34
<input name="NormaText" value="Plain Text" />
38
<script type="text/javascript">
40
// Automatically calculates the editor base path based on the _samples directory.
41
// This is usefull only for these samples. A real application should use something like this:
42
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
43
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
45
var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
46
oFCKeditor.BasePath = sBasePath ;
47
oFCKeditor.Height = 100 ;
48
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ;
49
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
55
<script type="text/javascript">
57
oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ;
58
oFCKeditor.BasePath = sBasePath ;
59
oFCKeditor.Height = 100 ;
60
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ;
61
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
66
<input type="submit" value="Submit" />