Skip to main content
Participant
May 23, 2008
Question

How to pass var to FCKeditor

  • May 23, 2008
  • 1 reply
  • 238 views
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!
This topic has been closed for replies.

1 reply

Inspiring
May 23, 2008
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.