(New page: It is very easy to use FCKeditor in your ColdFusion web pages. Just follow these steps. == Integration step by step == === Step 1 === Create a cfm page which will include the following ...) |
|||
(5 intermediate revisions by one other user not shown) | |||
Line 14: | Line 14: | ||
height="200" | height="200" | ||
> | > | ||
− | </pre> | + | </pre> |
− | |||
In the above example, BasePath is set to the URL path to the FCKeditor installation folder. | In the above example, BasePath is set to the URL path to the FCKeditor installation folder. | ||
Line 22: | Line 21: | ||
The editor is now ready to be used. Just open the page in your browser to see it at work. | The editor is now ready to be used. Just open the page in your browser to see it at work. | ||
− | + | === Sample Code === | |
+ | <pre><cfsetting enablecfoutputonly="true"> | ||
+ | <cfoutput> | ||
+ | <html> | ||
+ | <head> | ||
+ | <title>FCKeditor - Sample</title> | ||
+ | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
+ | <meta name="robots" content="noindex, nofollow"> | ||
+ | </head> | ||
+ | <body> | ||
+ | <h1>FCKeditor in Coldfusion</h1> | ||
+ | </cfoutput> | ||
− | === | + | <cfmodule |
+ | template="/fckeditor/fckeditor.cfm" | ||
+ | basePath="/fckeditor/" | ||
+ | instanceName="myEditor" | ||
+ | value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' | ||
+ | width="100%" | ||
+ | height="200" | ||
+ | > | ||
+ | </body> | ||
+ | </html> | ||
+ | <cfsetting enablecfoutputonly="false"> | ||
+ | </pre> | ||
+ | == Additional information == | ||
− | + | * You can find some samples on how to use the editor in the "_samples/cfm" directory. To install the samples, just copy that directory to the _samples directory found in the FCKeditor core package installation. | |
− | |||
− | |||
− | |||
− |
Latest revision as of 16:50, 20 February 2008
It is very easy to use FCKeditor in your ColdFusion web pages. Just follow these steps.
Integration step by step
Step 1
Create a cfm page which will include the following <cfmodule> code:
<cfmodule template="/fckeditor/fckeditor.cfm" basePath="/fckeditor/" instanceName="myEditor" value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' width="100%" height="200" >
In the above example, BasePath is set to the URL path to the FCKeditor installation folder.
Step 2
The editor is now ready to be used. Just open the page in your browser to see it at work.
Sample Code
<cfsetting enablecfoutputonly="true"> <cfoutput> <html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" content="noindex, nofollow"> </head> <body> <h1>FCKeditor in Coldfusion</h1> </cfoutput> <cfmodule template="/fckeditor/fckeditor.cfm" basePath="/fckeditor/" instanceName="myEditor" value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' width="100%" height="200" > </body> </html> <cfsetting enablecfoutputonly="false">
Additional information
- You can find some samples on how to use the editor in the "_samples/cfm" directory. To install the samples, just copy that directory to the _samples directory found in the FCKeditor core package installation.