1 Reply Latest reply on May 1, 2008 6:23 AM by Newsgroup_User

    FCKEditor cftextarea: Multiple config files?

    Mike8086
      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
        • 1. Re: FCKEditor cftextarea: Multiple config files?
          Level 7
          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
          >
          >