To me it looks like that the TinyMCE dosen´t understand the HTML5 tags and standard.
I have just tried to add link tag round a h3 and right it disappear when you save, then I tried to add an aside, and save the document, in the source code it have been transformed to a paragraph tag.
For now I think that you need to use old HTML, and not HTML5. So your a tag is placed inside your h3. like this:
<h3><a href="#">My header</a></h3
You could try add it to the issue tracker, http://issues.umbraco.org/ so the HQ know there is a issue if you add HTML5 in the Rich text editor. But I think it´s difficult for them to do something about because the Rich text editor uses the TinyMCE, so it´s the people behind the TinyMCE that needs to make it work with HTML5 tags.
Tinymce - anchors around block elements disappear
I'm using Umbraco 7 and I go to "Source code" in a tinymce-richtext-editor and enter this:
<a href="#"><h3>My header</h3></a>
When I click "Ok" the code has changed to
<h3>My header</h3>
How can I avoid this behaviour? I guess in html5 it's valid to have anchor tags around blockelements.
(its the same behavior if the "h3" would be a "div" or any other blockelement).
Hi Oscar,
To me it looks like that the TinyMCE dosen´t understand the HTML5 tags and standard.
I have just tried to add link tag round a h3 and right it disappear when you save, then I tried to add an aside, and save the document, in the source code it have been transformed to a paragraph tag.
For now I think that you need to use old HTML, and not HTML5. So your a tag is placed inside your h3. like this:
You could try add it to the issue tracker, http://issues.umbraco.org/ so the HQ know there is a issue if you add HTML5 in the Rich text editor. But I think it´s difficult for them to do something about because the Rich text editor uses the TinyMCE, so it´s the people behind the TinyMCE that needs to make it work with HTML5 tags.
Here are some documentation on how to write a good feature request report / bug report. http://our.umbraco.org/contribute/report-an-issue-or-request-a-feature
If you creates an issue, please place a link to it in this post so other that come accoss this post can vote for the issue.
/Dennis
Ok thanks Dennis.
I added a bug report here:
http://issues.umbraco.org/issue/U4-5763
is working on a reply...