I've used the FCKeditor quite a bit, but I got used to using it before the
cftextarea option came along, so my sample here won't directly translate to the
cf8 implementation, but a little futzing should yield the same results.
With FCKeditor installed, an editor object can be instantiated thusly:
<cfscript>
fckEditor = createObject("component", "path.to.FCKeditor.fckeditor");
fckEditor.instanceName = "myFCK";
fckEditor.value = htmContent;
fckEditor.basePath = "/path/to/FCKeditor/";
fckEditor.width = 420;
fckEditor.height = 300;
fckEditor.Config["EditorAreaCSS"] = "/siteRoot/css/fck.css"; //the css to apply
to the container's contents
fckEditor.toolbarset = 'CustomToolbar'; // corresponds to config in the js
file referenced below
fckEditor.Config["CustomConfigurationsPath"] = "/siteRoot/scripts/fck-cfg.js";
fckEditor.create();
</cfscript>
The fck-cfg.js file will contain:
FCKConfig.ToolbarSets["CustomToolbar"] = [
//buttons go here. check fckeditor.net site for options
]
Hope this helps.
- Dave
>I see in the "Toolbar Configuration" seetings for FCKEditor...
>on the FCKEditor site that the tools bar can be completely
>customized.
>
>I also notice that in the CF8 docs, that there are three settings
>for the toolbar display "default|basic|custom".
>
>Now is the FCKEditor Toolbar buttons can be included/excluded per button,
>then isn't it possible to do the same through cftextarea?
>
>I didn't see the individual toolbar buttons as options in the CF8 docs,
>so I'm assuming it may need to be done in a file somewhere, such as
>the "fckconfig.js" file when using FCKEditor directly.
>
>However, when looking for such a file in the ColdFusion 8 installation
>folder, I couldn't find anything that might look like a file that contains
>toolbar specifications.
>
>Anyone successfully changed the buttons on the cftextarea toolbar
>configurations
>via changing a specification file, or by other means?
>
>I just want buttons for
>
>- font family
>- font color
>- font size
>- font weight
>- font style (Italics, etc)
>- insert image (with border, alignment settings)
>
>I think that's all. Any more, and the client will foul up my design.
>
>Has anyone successfully customized the cftextarea toolbar in such a manner?
>
>I am consider TinyMCE, but I'd rather keep this CF to keep from having to add
>yet another third-party app that I have to keep track of.
>
>Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294610
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4