Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John 4 posts 85 karma points
    Jun 17, 2024 @ 15:24
    John
    0

    How to apply TYPE attribute to TinyMCE ordered lists

    Hi,

    I'm using Umbraco V13, and am trying to control the ordered list options within TinyMCE.

    TinyMCE allows you to control the available styles in the bullet and numbered list dropdowns via appSettings.json (excerpt below):

      "RichTextEditor": {
      "CustomConfig": {
        "advlist_bullet_styles": "",
        "advlist_number_styles": "lower-alpha,lower-roman,upper-alpha,upper-roman"
           }
        }
    

    and this applies a style to the markup such as:

    <ol style="list-style-type: lower-alpha;">
        <li>List Item 1</li>
        <li>List Item 2</li>
    </ol>
    

    but we want to use the "type" attribute which we style via CSS rather than adding inline styles. So what we want is:

    <ol type="a">
        <li>List Item 1</li>
        <li>List Item 2</li>
    </ol>
    

    Any ideas if TinyMCE can be configured to do this? Many thanks!

Please Sign in or register to post replies

Write your reply to:

Draft