Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2008



Tip: Looking for answers? Try searching our database.

FCKEditor cftextarea: Multiple config files?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike8086 - 01 May 2008 07:40 GMT
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
Ken Ford - 01 May 2008 14:23 GMT
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>

Signature

Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.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
[quoted text clipped - 12 lines]
>
> Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.