Hi,
I'm hoping someone can help me with the custom styles on the richtext field. I wanted to have it so you can add a class to an ordered list so that it can be changed from a lower-latin to a decimal list.
I've added the code to the .js file but it seems to choke on the fact that the element specified is an ol, rather than e.g. a paragraph.
Does anyone know if it's possible to add a class to an <ol> using custom styles?
I have found a way around this if it's not possible by specifying the element as a div. You then just have to highlight text and select the options in a specific order and it adds the classes to the <li>s. It's workable but just a little fiddly!
Thanks
Daz
I'm hoping someone can help me with the custom styles on the richtext field. I wanted to have it so you can add a class to an ordered list so that it can be changed from a lower-latin to a decimal list.
I've added the code to the .js file but it seems to choke on the fact that the element specified is an ol, rather than e.g. a paragraph.
- Code: Select all
{ name : 'Decimal List' , element : 'ol', attributes : { 'class' : 'decimal' } }
Does anyone know if it's possible to add a class to an <ol> using custom styles?
I have found a way around this if it's not possible by specifying the element as a div. You then just have to highlight text and select the options in a specific order and it adds the classes to the <li>s. It's workable but just a little fiddly!
Thanks
Daz