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.
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
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
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:
Lesley
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
is working on a reply...