Skip to content

Fixing Rails 3 Styling Issues

jefffis edited this page Feb 10, 2012 · 1 revision

Found working on a new Rails 3 project, no matter was specified for the available elements for users to select in the editor, only the default ones were being shown. Here's how to fix this:

Rename the XML File

First, instead of the xml file being named fckstyles.xml, it needs to be renamed [project_name]_fkcstyles.xml. Technically it does not need to be named like the project, any name change will work, just using project_name for consistency's sake makes sense.

Declare the New Filename

In the customconfig.js file, you just need to add the path to this new file:

FCKConfig.StylesXmlPath = '/bcms_config/fckeditor/[project_name]_fkcstyles.xml';

If you are still running into issues, make sure the customconfig.js file is in the /site folder and that this folder is inside the /bcms folder.

Clone this wiki locally