Can't see to make FCKEditor load any custom styles from fckstyles.xml. Have tried manually editing the path to the file and have tried specifying it using the UI in Drupal. FCK never shows more than the core styles.
Tried:
Verified that the path I'm using is corret by using to load the XML file
Manually editing fckconfig.js to specify a path
Manually editing fckeditor.config.js
Entering a javascript over-ride for the relevant theme. (I can tell I've got the right theme because I've specified a custom stylesheet.)
Larger question: How will I tell that working? What do I have to do to ensure that FCK is loading the required files, and I'm actually testing something meaningful? Right now I can't figure out hot to tell if it's my syntax or a path or what have you.
Comment on version: I was using an earlier version of the fckeditor module and had this problem -- didn't report it because I thought I'd try the dev vesion to see if it worked.
I've been banging my head against this for a couple of hours altogether, and could really use some pointers on where to look to figure out if the fckstyles.xml is getting processed.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | drop-down-top.png | 9.29 KB | escoles |
Comments
Comment #1
Jorrit commentedfckstyles.xml is fetched using AJAX, you can use firebug to check what is being downloaded.
Comment #2
escoles commentedWill see about loading Firebug and verifying that it's being loaded and from where.
If it's not being loaded, and assuming that all files are in their proper places (they do seem to be), what are possible causes and remedies? I see nothing about anything like this on the FCK forums -- the closest thing I see is a case where people are seeing a PHP error, which I'm not seeing.
Additional info: Have just verified using Firebug that fckstyles.xml is being successfully retrieved in FF3 on Mac.
More add'l info, relevant since learning this is an AJAX retrieval: Problem is evidenced both on Mac and Windows.
Comment #3
escoles commentedTo clarify and reiterate: According to Firebug, fckstyles.xml is being retrieved successfully. But I can see no indications that it is being interpreted by FCKEditor. What direction should I be going in to try to resolve this issue?
Comment #4
Jorrit commentedAre you sure you have put the 'Style' button in the toolbar you are using? It's not in there by default.
Comment #5
escoles commentedNot sure what you mean by "style button." I've got the drop-down list that shows styles. It's populated with the core styles. It just doesn't add anything that's specified in fckstyles.xml.
Attaching screenshot of the "button" I'm talking about.
Also, in case it's useful, here's an example of an fckstyles.xml that I've tried to use:
Comment #6
Jorrit commentedWhat you have on your screenshot is the FontFormat toolbar item. You need to add the 'Style' toolbar item to the toolbar you're using in fckeditor.config.js.
Comment #7
escoles commentedAh, I see. I guess I was confused by the fact that the combo was showing semantic elements, not font formats. That led me not to think it was a font format selector. Works now.
Comment #8
EDDYL commentedI had the same problem ! Thanks for this post that save me after 3 days of research for a small unexplicite thing.
Here is what to put in your code to get the xml and custom css working :
Notice the 'Style' element : 'FontFormat' is not what you might think it is !!!!
Edouard
Comment #9
merzikain commentedI was actually having this problem and it was not because I didn't add Style to the list. I got this:
Error loading "/sites/all/themes/ga/fckstyles.xml"
Do you want to see more info?
And when I clicked "OK" I got this:
URL requested: "/sites/all/themes/ga/fckstyles.xml"
Server response:
Status: 200
Response text: ...my entire fckstyles.xml file as it should be...
It took me a while to realize the problem was that I had < and > in the names of a few of my styles:
<Style name="Normal <div>" element="div" />I changed the <> to () and it started working fine.
I hope that helps anyone else who may make that silly mistake too.