I'm converting my ColdFusion CMS app to use FCK. Does anyone have experience generating a styles list for use in the FCK editor iframe from a query?
Is it necessary to modify the config.StyleNames and config.StyleValues in fck_config.js or can the values be passed using CFModule attributes?
Many thanks.
Chris B.
Is it necessary to modify the config.StyleNames and config.StyleValues in fck_config.js or can the values be passed using CFModule attributes?
Many thanks.
Chris B.
RE: CF - Using FCK instead of DevEdit
If you are really desperate you can
1. Write your own config file via cffile
2. Incorporate the .js file into a file that has a .cfm extension.
I've looked at both and neither are worth the trouble. The latter choice would require *extensive* monkeying with the editor. The former is too much overhead (for me, at least).
Sorry for the downer,
--Matt--
RE: CF - Using FCK instead of DevEdit
Thanks for your reply.
Perhaps I could make a call from the config .js file to a dynamically generated user_styles.js or something like that. What do you think?
Right now, we generate a new site.css file each time the application.cfm runs. If we could use the same query to load the styles directly into FCK (or generate a user_styles.js read by fck_config.js or parse the existing the site.css file), that would be great.
Arnaud Saint-Paul uploaded a patch (https://sourceforge.net/tracker/index.p ... tid=543655) for PHP users so that they can read an existing .css FILE into the editor (and presumably parse it to generate the styles list used in the style drop down). I don't have any experience with PHP though, so I'm not having much luck figuring out what to do in CF to achieve something similar. Any ideas?
It would be great if the majority of the config settings could be passed to FCK using attributes from the calling code (CFMODULE in the case of CF). This is especially true for toolbar settings, initial content (query, file, or string), styles, and file/directory paths ... Perhaps these could be features for version 2.0.
Thanks again for any input you can provide.
Regards, Chris