• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

FCKEditor cftextarea: Multiple config files?

New Here ,
Apr 30, 2008 Apr 30, 2008

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

363

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 01, 2008 May 01, 2008

Copy link to clipboard

Copied

LATEST
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
>
>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation