I use it all of the time. It can be used in a number of ways. I like the ease 
of clicking something that replaces the content within an element (textarea or 
div) and loads after the page loads. I have an application that uses a custom 
tag to instantiate it:

<cfparam name="attributes.html" default="">
<cfparam name="attributes.height" default="200">
<cfif thisTag.ExecutionMode is 'start'>
<cfscript>
        fckEditor = createObject("component", "fckeditor.fckeditor");
        fckEditor.instanceName="myEditor";
        fckEditor.basePath="/fckeditor/";
        fckEditor.value=attributes.html;
        fckEditor.width="100%";
        fckEditor.height=attributes.height;
        fckEditor.create(); 
</cfscript>

</cfif>

<cfif thisTag.ExecutionMode is 'end'></cfif>


Then just run it on your page like this:

<cfimport
        prefix="tag" 
        taglib="tags/">
<tag:fck html="#myhtml#" height="500"/>

You can add as many attributes as you want but this seems to be easier than 
doing any changes to the code inside of FCKEditor.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328274
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to