FCKEditor: Using a custom configuration file
Posted August 9th, 2008 in FCKEditor
A little while back I posted about how I upgrade FCKEditor when a new release comes out, and how I need to merge changes from my old fckconfig.js to the new one for the new release. I have since learned how to use a custom configuration file with FCKEditor which means no longer needing to merge changes into the new version of the file.
It's really quite simple; you appear to be able to modify any configuration setting programmatically with FCKEditor and there's a configuration setting called "CustomConfigurationsPath" which specifies the location of your customer file which is then loaded after the main fckconfig.js
In PHP, you would do it like this (in other programming languages it will be similar):
$FCKeditor = new FCKeditor('myinstance');
$FCKeditor->Config["CustomConfigurationsPath"] = "/path/to/myconfig.js";
... other options ...
$FCKeditor->Create();
This tells FCKEditor to load the myconfig.js file and supplement and override the configurations options in the main fckconfig.js file.
Related posts:
- Prevent "Red Title" showing in FCKEditor style drop down box (Sunday, June 21st 2009)
- Specify custom styles with FCKeditor (Sunday, June 14th 2009)
- Remove "Browse" button and "Upload" tab in FCKEditor Link dialog (Tuesday, January 20th 2009)
- FCKeditor after capital letters and colons (Wednesday, January 7th 2009)
- Always make FCKEditor paste as plain text (Tuesday, November 11th 2008)
- Using the FCKEditor HTML Editor with PHP (Wednesday, August 20th 2008)
Share or Bookmark
Share or Bookmark this page using the following services. You will need to have an account with the selected service in order to post links or bookmark this page.
Subscribe or Follow
Subscribe via RSS or email, or follow me on Facebook or Twitter below. The RSS icon takes you through to Feedburner where you can select the service or application to use.
