Copied to clipboard

Flag this post as spam?

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


  • Mark Johnston 59 posts 111 karma points
    May 02, 2011 @ 23:37
    Mark Johnston
    0

    Issues with id's on list items in the HTML editor

    I have written some HTML code outside of Umbraco and part of that is an unordered list with each list item having it's unique id (id="UniqueID"). After I cut and past it into the html editor od Umbraco and saved all the id's are removed from the list item. This valid HTML/XHTML and should be allowed. Having to have to resort to classes is not as ideal or as efficient.

    I am using Umbraco 4.7.0

  • Lesley 284 posts 143 karma points
    May 03, 2011 @ 01:13
    Lesley
    0

    Hi Mark,

    You can enable id attributes on list items by editing the /config/tinyMceConfig.config file.

    Near the bottom of the file, you'll see the <validElements> tag. Find the rule for li and add id in the square brackets like this:

    .... -li[id|class|style] ....

    Lesley

  • Rich Green 2246 posts 4008 karma points
    May 03, 2011 @ 01:14
    Rich Green
    0

    Do you mean when you paste the code into the Rich Text editor, or into a template?

    If you mean the RTE there are various settings which can be changed to 'tidy' tags etc. I don't know where this is configured off the top of my head, but the RTE is TinyMCE, so either search here / google or have a look in umbracoclient/tinymce

    Rich

Please Sign in or register to post replies

Write your reply to:

Draft