Skip to main content
May 1, 2008
Question

FCKEditor cftextarea: Multiple config files?

  • May 1, 2008
  • 1 reply
  • 407 views
I know you can edit the global config file to have it point to a local config file. But we have multiple customers on our server that require their own individual config file. Is there any way to get the cftextarea to do this? I'd like to pass the info using a cfif (customer eq 1, use config file 1). The only hint I've seen of this is installing the FCKEditor and instantiating an object and passing in a config file like it used to be done before cftextarea supported it.

Any advice?

Also, I can't seem to get the cftextarea style="xxx" to work with the rich text editor (it works with the regular text editor).

Thanks in advance for any help!

Mike
This topic has been closed for replies.

1 reply

Inspiring
May 1, 2008
I think you have to add toolbars to the fckconfig.js file

http://livedocs.adobe.com/coldfusion/8/htmldocs/ajaxui_7.html#1126938

FCKConfig.ToolbarSets["MyBasicText"] = [
['Source','DocProps','-','NewPage','Preview'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline'],
['Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','-','About']
];

Then you specify which toolbar to use:

<cftextarea name="Comments" id="Comments" richtext="yes" toolbar="MyBasicText"></cftextarea>

--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"Mike8086" <webforumsuser@macromedia.com> wrote in message news:fvbolg$cdc$1@forums.macromedia.com...
>I know you can edit the global config file to have it point to a local config
> file. But we have multiple customers on our server that require their own
> individual config file. Is there any way to get the cftextarea to do this?
> I'd like to pass the info using a cfif (customer eq 1, use config file 1). The
> only hint I've seen of this is installing the FCKEditor and instantiating an
> object and passing in a config file like it used to be done before cftextarea
> supported it.
>
> Any advice?
>
> Also, I can't seem to get the cftextarea style="xxx" to work with the rich
> text editor (it works with the regular text editor).
>
> Thanks in advance for any help!
>
> Mike
>
>