Thanks for the reply! I did have a styles node configured... but apparently the styles xml file I used from FCK had a bug in it. Styles are working find now for me... except that I cannot apply a style to a table although this should be possible according to the FCK developer manual. Whenever I select the table I either get the normal text styles (because the text in the table was selected) or I don't get any styles at all (don't ask me what FCK selects at that point).

Anyway, I'll keep on trying...

Regards,
Will

On 04.03.2008, at 09:00, Ryan Gardner wrote:


On Mar 4, 2008, at 12:43 AM, Will Scheidegger wrote:

Dear Magnolias

Did anyone of you get the Styles feature to work in FCK? I'm using a custom setup file and am providing the correct path to the styles XML file.

Why is the path correct? -> If I change it, i get an error message telling me, that the styles file could not be found. Is the styles xml file o.k.? -> I hope so, 'cause I'm using the sample from the fck website.

What are the symptoms? -> The "Styles" drop-down is being displayed, but it is always empty!

Any ideas anyone? (This is on Magnolia 3.5.x)


Regards,
Will

You have to set up a styles node in the dialog configuration for it... (at the same level as the controlType with value "fckEdit" )

in one of mine, I have this node:

"styles" with the value "/docroot/vast/config/fckBodyStyles.xml"

and in my fckBodyStyles.xml file I have this:

http://pastebin.ca/927402

I also have this node:

jsConfigFile

with this value:

/docroot/vast/config/fckBodyConfig.js

and the contents of the /docroot/vast/config/fckBodyConfig.js is here:

http://pastebin.ca/927398

I exported the text node of my dialog to XML, so you can see how I have it setup:

http://pastebin.ca/927404

(you can import that node straight into your dialog and see how it is configured)

Hope that helps. It works for me at least.

Oh, but I always make sure to put the source button on anything that I use custom styles for becaus FckEditor really makes a case for having a "u" inserted somewhere in it's title (hint: in the first 3 letters) when it happens to randomly sprinkle paragraph tags with random styles, and it doesn't seem to delete earlier ones it made... etc. - so I have the source button so someone can go in and scrub out any extra crap the fckEditor throws in there when using the more advanced features.

Ryan



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to