I'm not sure where to actually change this odd behaviour but as a workaround I suppose you could write something like
html .yourrtecontentcontainer li{display:block} or use jquery to remove the style attribute? I know it's not ideal but perhaps it could do as a workaround?
You could try going into the tinyMce.config file and in the '<validElements>' section, and try update '-li[class|style]', to be '-li[class]'. Not 100% sure if this will work though.
RichTextEditor (TinyMCE) Nested Lists Markup
When I nest unordered lists via the RichTextEditor then nested UL is wrapped <li style="list-style: none;"/>
Does anyone where you can change/control this?
I'd prefer the markup to either use a class name on the surrounding LI or (ideally) include the nested UL in the last valid LI.
Generated markup (after you hit save)
Thanks
Hi Chris
I'm not sure where to actually change this odd behaviour but as a workaround I suppose you could write something like
html .yourrtecontentcontainer li{display:block} or use jquery to remove the style attribute? I know it's not ideal but perhaps it could do as a workaround?
/Jan
Thanks for the response Jan. The css approach won't work as the li is already block and I'd use jquery as a last resort for this.
The main issue is that the parent li has a background image as a bullet, therefore I end up with a, seemingly, additional bullet.
Any other thoguhts?
You could try going into the tinyMce.config file and in the '<validElements>' section, and try update '-li[class|style]', to be '-li[class]'. Not 100% sure if this will work though.
Nice idea Euan, definately stops the inline styles. However doesn't stop the un-neccessary LI tag or give me control via CSS 2
I've found the solution! You need to install and enable the 'lists' plugin.
Thanks to everyone for their input.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.