Hello,
CKeditor does not have the right click menu to change the properties of numbered lists like in the FCKeditor (see http://dev.fckeditor.net/ticket/4358)
Does anyone have a workaround for this?
Thanks.
Fri, 10/30/2009 - 15:47
#1
Re: Workaround for the list properties
Hmmmm... I wonder if the FCKEditor used the <ol type=""> tag, which is now depricated. And perhaps CKEditor uses the modern CSS style to determine the list enumerators.
Here is a page where you can see an example of a CSS style applied to ordered lists: http://www.w3schools.com/TAGS/tryit.asp ... l_type_css
and, here is the W3Schools.com CSS list-style-type Property:http://www.w3schools.com/css/pr_list-style-type.asp
And/or, you may want to google "list-style-type" if those links I gave are not enough.
Dennis
Re: Workaround for the list properties
Thanks for this useful and clever solution. I will put your solution into Trac once I have tested it.
Thanks
Re: Workaround for the list properties
In the Style combo plugin, I added an attribute for the ol element.
Here is the code (plugins\stylescombo\default.js)
CKEDITOR.addStylesSet('default',[
{name:'Marker: Yellow',element:'span',styles:{'background-color':'Yellow'}},
{name:'Big',element:'big'},
{name :'Roman',element:'ol',attributes:{type:'I'}},
{name:'Computer Code',element:'code'}
]);
It works BUT to apply the style, the ol element must be selected. The only method I saw is to select it via the name of the element shown at the bottom of the editor. Not user friendly at all. (see the CKEDITOR FAQ http://cksource.com/forums/viewtopic.php?f=11&t=17301)
Any idea to improve it?