I use this syntax:
<cfscript>
fckeditor=createObject("component","#application.config.toepassingMappingFunctions#._functions.FCKeditor.fckeditor");
fckeditor.instanceName="name";
fckeditor.value="#attributes.name#";
fckeditor.ToolbarSet = "Basic";
fckeditor.basePath=application.path.FCKEditor.base;
fckeditor.width="500";
fckeditor.height="300";
fckeditor.create();
</cfscript>
Currently using the latest build of FCKEditor 2.65 I believe with CF8, but
planning to make the step to CKEditor. Upgrading is usually just cutting away
all the old folders and files and pasting the new folders and files - works
immediately ;-)
>Will... CKEditor is the new name/new design for FCKeditor.
>
>Terry, I'm using CKEditor in one of my apps. On the whole, I like it a LOT
>better than the original. It was pretty easy to integrate for me, because I
>use a function call to create text areas in my app, so I just modified the
>function and it replaced everywhere in the app.
>
> <CFFUNCTION NAME="dsp_RichText" OUTPUT="TRUE" ACCESS="PUBLIC"
>DESCRIPTION="INVOKES CKEDITOR">
> <CFARGUMENT NAME="NAME" REQUIRED="YES">
> <CFARGUMENT NAME="CONTENT" REQUIRED="NO" DEFAULT="">
>
> <textarea name="#NAME#" cols="40" rows="8">#content#</textarea>
> <script type="text/javascript">
> <cfoutput>
> CKEDITOR.replace( '#name#',
> {
> filebrowserBrowseUrl :
>'/modules/cffm/cffm.cfm?editorType=cke&EDITOR_RESOURCE_TYPE=file',
> filebrowserImageBrowseUrl :
>'/modules/cffm/cffm.cfm?editorType=cke&EDITOR_RESOURCE_TYPE=image',
> filebrowserFlashBrowseUrl :
>'/modules/cffm/cffm.cfm?editorType=cke&EDITOR_RESOURCE_TYPE=flash',
> filebrowserUploadUrl :
>'/modules/cffm/cffm.cfm?action=QuickUpload&editorType=cke&EDITOR_RESOURCE_TYPE=file',
> filebrowserImageUploadUrl :
>'/modules/cffm/cffm.cfm?action=QuickUpload&editorType=cke&EDITOR_RESOURCE_TYPE=image',
> filebrowserFlashUploadUrl :
>'/modules/cffm/cffm.cfm?action=QuickUpload&editorType=cke&EDITOR_RESOURCE_TYPE=flash'
> }
> );
> CKEDITOR.replace('#name#');
> </cfoutput>
> </script>
> </CFFUNCTION>
>
>
>
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:328298
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4