--- /dev/null
+<cfsetting enablecfoutputonly="true">\r
+<!---\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ * - GNU General Public License Version 2 or later (the "GPL")\r
+ * http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ * http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ * - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ * http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * Sample page for ColdFusion MX 6.0 and above.\r
+--->\r
+<cfoutput>\r
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\r
+<html>\r
+ <head>\r
+ <title>FCKeditor - Sample</title>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
+ <meta name="robots" content="noindex, nofollow">\r
+ <link href="../sample.css" rel="stylesheet" type="text/css" />\r
+ <script type="text/javascript">\r
+\r
+function FCKeditor_OnComplete( editorInstance )\r
+{\r
+ var oCombo = document.getElementById( 'cmbToolbars' ) ;\r
+ oCombo.value = editorInstance.ToolbarSet.Name ;\r
+ oCombo.style.visibility = '' ;\r
+}\r
+\r
+function ChangeToolbar( toolbarName )\r
+{\r
+ window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;\r
+}\r
+\r
+ </script>\r
+ </head>\r
+ <body>\r
+ <h1>FCKeditor - ColdFusion Component (CFC) - Sample 3</h1>\r
+ This sample shows how to change the editor toolbar.\r
+ <hr>\r
+</cfoutput>\r
+<cfif listFirst( server.coldFusion.productVersion ) LT 6>\r
+ <cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>\r
+ <cfabort>\r
+</cfif>\r
+<cfoutput>\r
+ <table cellpadding="0" cellspacing="0" border="0">\r
+ <tr>\r
+ <td>\r
+ Select the toolbar to load: \r
+ </td>\r
+ <td>\r
+ <select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">\r
+ <option value="Default" selected>Default</option>\r
+ <option value="Basic">Basic</option>\r
+ </select>\r
+ </td>\r
+ </tr>\r
+ </table>\r
+ <br>\r
+<form action="sampleposteddata.cfm" method="post" target="_blank">\r
+</cfoutput>\r
+ <cfscript>\r
+ // Calculate basepath for FCKeditor. It's in the folder right above _samples\r
+ basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 ) ;\r
+\r
+ fckEditor = createObject( "component", "#basePath#fckeditor" ) ;\r
+ fckEditor.instanceName = "myEditor" ;\r
+ fckEditor.value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;\r
+ fckEditor.basePath = basePath ;\r
+ if ( isDefined( "URL.Toolbar" ) )\r
+ {\r
+ fckEditor.ToolbarSet = HTMLEditFormat( URL.Toolbar ) ;\r
+ }\r
+ fckEditor.create() ; // create the editor.\r
+ </cfscript>\r
+<cfoutput>\r
+ <br>\r
+ <input type="submit" value="Submit">\r
+ </form>\r
+ </body>\r
+</html>\r
+</cfoutput>\r
+<cfsetting enablecfoutputonly="false">\r