2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
* Licensed under the terms of the GNU Lesser General Public License:
6
* http://www.opensource.org/licenses/lgpl-license.php
8
* For further information visit:
9
* http://www.fckeditor.net/
11
* "Support Open Source software. What about a donation today?"
13
* File Name: sample02.html
17
* Frederico Caldeira Knabben (fredck@fckeditor.net)
19
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<title>FCKeditor - Sample</title>
23
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
24
<meta name="robots" content="noindex, nofollow">
25
<link href="../sample.css" rel="stylesheet" type="text/css" />
26
<script type="text/javascript" src="../../fckeditor.js"></script>
27
<script type="text/javascript">
29
window.onload = function()
31
// Automatically calculates the editor base path based on the _samples directory.
32
// This is usefull only for these samples. A real application should use something like this:
33
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
34
var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
36
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
37
oFCKeditor.BasePath = sBasePath ;
38
oFCKeditor.ReplaceTextarea() ;
44
<h1>FCKeditor - Javascript - Sample 2</h1>
45
This sample displays a normal HTML form with an FCKeditor with full features
46
enabled. It uses the "ReplaceTextarea" command to create the editor.
48
<form action="sampleposteddata.asp" method="post" target="_blank">
50
<textarea name="FCKeditor1" style="WIDTH: 100%; HEIGHT: 200px">This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</textarea>
53
<input type="submit" value="Submit">