1<cfsetting enablecfoutputonly="true"> 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 for ColdFusion. 23---> 24 25<cfoutput> 26<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 27<html> 28<head> 29 <title>FCKeditor - Sample</title> 30 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 31 <meta name="robots" content="noindex, nofollow"> 32 <link href="../sample.css" rel="stylesheet" type="text/css" /> 33</head> 34<body> 35<h1>FCKeditor - ColdFusion - Sample 1</h1> 36 37This sample displays a normal HTML form with a FCKeditor with full features enabled. 38<hr> 39 40<form method="POST" action="sampleposteddata.cfm"> 41</cfoutput> 42 43<!--- Calculate basepath for FCKeditor. It's in the folder right above _samples ---> 44<cfset basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 )> 45 46<cfmodule 47 template="../../fckeditor.cfm" 48 basePath="#basePath#" 49 instanceName="myEditor" 50 value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' 51 width="100%" 52 height="200" 53> 54 55<cfoutput> 56<br /> 57<input type="submit" value="Submit"> 58<hr /> 59</form> 60</body> 61</html> 62</cfoutput> 63<cfsetting enablecfoutputonly="false">