Prevent "Red Title" showing in FCKEditor style drop down box
Posted June 21st, 2009 in FCKEditor
The style drop down box in FCKeditor has a number of default styles which can be overridden by specifying a custom fckstyles.xml file. However, "Red Title" remains there even if the XML styles file is replaced with a custom one.
This is shown in the example screenshot below:

Creating a cusom fckstyles.xml file and using that by specifying it in the configuration (see my post about how to do this) will remove everything from "Marker: Yellow" down but not the "Red Title", because it's specified in the default FCKEditor config, instead of in the XML file.
The easiest way to remove it is to add the following line to your own custom FCKeditor config file (more about that here):
FCKConfig.CustomStyles = { };
If you don't have a custom config file it can also be done in code on the server-side. The following is an example using PHP to show how to do this:
$oFCKeditor->Config["CustomStyles"] = "";
The code will be similar for other programming languages.
Related posts:
- Specify custom styles with FCKeditor (Sunday, June 14th 2009)
- Language selection with FCKEditor (Sunday, February 22nd 2009)
- Remove "Browse" button and "Upload" tab in FCKEditor Image Properties dialog (Friday, January 30th 2009)
- Remove "Browse" button and "Upload" tab in FCKEditor Link dialog (Tuesday, January 20th 2009)
- FCKEditor: Using a custom configuration file (Saturday, August 9th 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.
