1 Reply Latest reply on May 23, 2008 4:30 PM by MaryJo

    How to pass var to FCKeditor

    antmeeks
      I'm calling FCKeditor using cftextarea and I need to pass a Coldfusion var to the fckconfig.js file. Any ideas / help would be greatly appreciated! Thanks!
        • 1. Re: How to pass var to FCKeditor
          MaryJo Level 1
          Depends on what you need to do exactly but FCKEditor has support for passing configuration settings into the editor, like this:

          <cfset config = StructNew()>
          <cfset config.ImageBrowserURL = "my_custom_URL">

          <cfmodule template="customtags/fckeditor/fckeditor.cfm"
          instanceName="MyField"
          height="500"
          config="#config#"
          Value="#PreviousText#"
          />

          You can set configuration variables in a similar manner if you are calling it as a component, the cfm examples included in the download show that method as well.