-
Notifications
You must be signed in to change notification settings - Fork 8
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:
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.
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.