1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<!--
3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
5 *
6 * == BEGIN LICENSE ==
7 *
8 * Licensed under the terms of any of the following licenses at your
9 * choice:
10 *
11 *  - GNU General Public License Version 2 or later (the "GPL")
12 *    http://www.gnu.org/licenses/gpl.html
13 *
14 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15 *    http://www.gnu.org/licenses/lgpl.html
16 *
17 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18 *    http://www.mozilla.org/MPL/MPL-1.1.html
19 *
20 * == END LICENSE ==
21 *
22 * Sample page.
23-->
24<html xmlns="http://www.w3.org/1999/xhtml">
25<head>
26	<title>FCKeditor - Sample</title>
27	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28	<meta name="robots" content="noindex, nofollow" />
29	<link href="../sample.css" rel="stylesheet" type="text/css" />
30	<script type="text/javascript" src="../../fckeditor.js"></script>
31</head>
32<body>
33	<h1>
34		FCKeditor - JavaScript - 6</h1>
35	<div>
36		This sample shows some sample plugins implementations. Things to note:<br />
37		<ul>
38			<li>In the toolbar, you will find sample "Find" and "Replace" plugins that do exactly
39				the same thing that the built in ones do. It just shows how to do that with a custom
40				implementation. Use the green toolbar buttons the test then. </li>
41			<li>There is also another sample plugin that is available in the package: the "Placeholder"
42				command (use the yellow icon). </li>
43			<li>It also shows a custom context menu option when right cliking on images (insert
44				a smiley to test it).</li>
45		</ul>
46	</div>
47	<hr />
48	<form action="sampleposteddata.asp" method="post" target="_blank">
49		<script type="text/javascript">
50<!--
51// Automatically calculates the editor base path based on the _samples directory.
52// This is usefull only for these samples. A real application should use something like this:
53// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
54var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
55
56var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
57oFCKeditor.BasePath	= sBasePath ;
58
59// Set the custom configurations file path (in this way the original file is mantained).
60oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/sample06.config.js' ;
61
62// Let's use a custom toolbar for this sample.
63oFCKeditor.ToolbarSet	= 'PluginTest' ;
64
65oFCKeditor.Value		= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
66oFCKeditor.Create() ;
67//-->
68		</script>
69		<br />
70		<input type="submit" value="Submit" />
71	</form>
72</body>
73</html>
74