| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
|
| 3 |
<!-- |
| 4 |
|
| 5 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
| 6 |
|
| 7 |
* Copyright (C) 2003-2009 Frederico Caldeira Knabben |
| 8 |
|
| 9 |
* |
| 10 |
|
| 11 |
* == BEGIN LICENSE == |
| 12 |
|
| 13 |
* |
| 14 |
|
| 15 |
* Licensed under the terms of any of the following licenses at your |
| 16 |
|
| 17 |
* choice: |
| 18 |
|
| 19 |
* |
| 20 |
|
| 21 |
* - GNU General Public License Version 2 or later (the "GPL") |
| 22 |
|
| 23 |
* http://www.gnu.org/licenses/gpl.html |
| 24 |
|
| 25 |
* |
| 26 |
|
| 27 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
| 28 |
|
| 29 |
* http://www.gnu.org/licenses/lgpl.html |
| 30 |
|
| 31 |
* |
| 32 |
|
| 33 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
| 34 |
|
| 35 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
| 36 |
|
| 37 |
* |
| 38 |
|
| 39 |
* == END LICENSE == |
| 40 |
|
| 41 |
* |
| 42 |
|
| 43 |
* Sample page. |
| 44 |
|
| 45 |
--> |
| 46 |
|
| 47 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 48 |
|
| 49 |
<head> |
| 50 |
|
| 51 |
<title>FCKeditor - Sample</title> |
| 52 |
|
| 53 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 54 |
|
| 55 |
<meta name="robots" content="noindex, nofollow" /> |
| 56 |
|
| 57 |
<link href="../sample.css" rel="stylesheet" type="text/css" /> |
| 58 |
|
| 59 |
<script type="text/javascript" src="../../fckeditor.js"></script> |
| 60 |
|
| 61 |
</head> |
| 62 |
|
| 63 |
<body> |
| 64 |
|
| 65 |
<h1> |
| 66 |
|
| 67 |
FCKeditor - JavaScript - Sample 15 |
| 68 |
|
| 69 |
</h1> |
| 70 |
|
| 71 |
<div> |
| 72 |
|
| 73 |
This sample shows FCKeditor configured to produce a legacy HTML4 document. Traditional |
| 74 |
|
| 75 |
HTML elements like <b>, <i>, and <font> are used in place of |
| 76 |
|
| 77 |
<strong>, <em> and CSS styles. |
| 78 |
|
| 79 |
</div> |
| 80 |
|
| 81 |
<hr /> |
| 82 |
|
| 83 |
<form action="../php/sampleposteddata.php" method="post" target="_blank"> |
| 84 |
|
| 85 |
<script type="text/javascript"> |
| 86 |
|
| 87 |
<!-- |
| 88 |
|
| 89 |
// Automatically calculates the editor base path based on the _samples directory. |
| 90 |
|
| 91 |
// This is usefull only for these samples. A real application should use something like this: |
| 92 |
|
| 93 |
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. |
| 94 |
|
| 95 |
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; |
| 100 |
|
| 101 |
oFCKeditor.BasePath = sBasePath ; |
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
// Instruct the editor to load our configurations from a custom file, leaving the |
| 106 |
|
| 107 |
// original configuration file untouched. |
| 108 |
|
| 109 |
oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/assets/sample15.config.js' ; |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
oFCKeditor.Height = 300 ; |
| 114 |
|
| 115 |
oFCKeditor.Value = '<p>This is some <b>sample text<\/b>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; |
| 116 |
|
| 117 |
oFCKeditor.Create() ; |
| 118 |
|
| 119 |
//--> |
| 120 |
|
| 121 |
</script> |
| 122 |
|
| 123 |
<br /> |
| 124 |
|
| 125 |
<input type="submit" value="Submit" /> |
| 126 |
|
| 127 |
</form> |
| 128 |
|
| 129 |
</body> |
| 130 |
|
| 131 |
</html> |
| 132 |
|
| 133 |
|