Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
When i add a bullet list in a rich text editor, the html result is the following:
<ul> <li>Item1</li> <li>Item2</li> <li>Item3</li> </ul>
I'm trying to obtain something like this:
<ul class="myclassname"> <li>Item1</li> <li>Item2</li> <li>Item3</li> </ul>
I've been googling around all day and can't find a solution.
Anyone knows a way to achieve this?
Thanks in advance,
Andre Sousa.
Modifying your tinyMceConfig.config file (in the config folder) to look something like this should work:
tinyMceConfig.config
config
<?xml version="1.0" encoding="utf-8"?> <tinymceConfig> <customConfig> <config key="style_formats">[ { "title": "Specialized List", "selector": "ul", "classes": "myclassname" } ]</config> </customConfig> </tinymceConfig>
Then, in the "Styles" drop down above the rich text editor, you should see an entry that says "Specialized List" that will allow you to apply that class to the UL currently selected in the rich text editor.
Hi Nicholas,
Interesting idea, i'll give it a shot.
Thank you for your help.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom Bullet List
Hi all,
When i add a bullet list in a rich text editor, the html result is the following:
I'm trying to obtain something like this:
I've been googling around all day and can't find a solution.
Anyone knows a way to achieve this?
Thanks in advance,
Andre Sousa.
Modifying your
tinyMceConfig.config
file (in theconfig
folder) to look something like this should work:Then, in the "Styles" drop down above the rich text editor, you should see an entry that says "Specialized List" that will allow you to apply that class to the UL currently selected in the rich text editor.
Hi Nicholas,
Interesting idea, i'll give it a shot.
Thank you for your help.
Andre Sousa.
is working on a reply...