custom style for unordered list in style dropdown of fckeditor
Last Post 03/27/2010 9:52 AM by Anthony. 2 Replies.
Author Messages
Anthony
Nuke Pro
Nuke Pro
Posts:72


--
03/25/2010 4:02 PM  
Hi, I learned a lot from the tutorials about getting your custom styles in the fckeditor styles dropdownlist through the use of a custom fckstyles.xml file. All the styles for my classes for p tags are working fine. I have one Styles node for an ul element though that isn't showing in the fckeditor styles dropdownlist. This is the node: I should address the "ul" tag, right? Or should I address the "li" tag? Thanks, Anthony www.webmove.be Belgium
WinXnet
Nuke Master
Nuke Master
Posts:156


--
03/26/2010 7:43 AM  
I have had a lot of trouble with the ul and li styles showing up.

It's a bit bulky but you can add a div style, say "custom" and style the ul & li tags that fall in it:

div.custom ul {}
div.custom ul li {}

Another option would be to add an ul li style to a pane:
.ContentPane ul {}
.ContentPane ul li {}

The first option can be a pain to get working properly in the editor, since you have to click inside the div to edit it, and it's easier to create the ul then add the div afterwards (users always seem to have trouble with multistep processes...)

I have found the latter works great when you want control over what the ul and li look like in a specific pane and don't want to leave it to administrators to mess with the design too much.

A third option would be to create an FCK editor template. I have found this is much easier for users - though they do need instructions on how to apply it properly so as not to erase the current content (which is an option when using templates).

Emerson
http://www.winxnet.com Emerson Bruce - http://chayadigital.wordpress.com
Anthony
Nuke Pro
Nuke Pro
Posts:72


--
03/27/2010 9:52 AM  
Thanks a lot Emerson for your very extensive reply Anthony


---