I would like my content editors to be able to include anchors but I want to move to HTML5 and <a name=> tags are not semantic. Would it be possible to provide id attributes by default to all headers? Then when the editor clicks the link button s/he could select the id element from the Anchor drop-down. I think that would be sweet!

Comments

mkesicki’s picture

Status: Active » Postponed

I am not sure if I understand you good. You want from as to add some default id to all headers ie "
Header1

" and so on ?
If yes it can be good for some user but not good for others. I think that plenty of users can complain about this.

sarah_g’s picture

Sorry, I forgot to put the code tags around my <a name=""> snippet. I don't really know what the solution should be but in html5 <a name=""> is invalid. Using id attributes in headers as anchors already works in html4 too, so that would be my preference.
http://www.html-5.com/tags/a-tag/index.html#whats-new
Thank you

jonraedeke’s picture

Status: Postponed » Closed (fixed)

In case anyone still encounters this old issue, try upgrading to a newer version of the CKEditor library. This was fixed in v3.6.5 I believe.

Closing

jonraedeke’s picture

Issue summary: View changes

Sorry, I needed to put code tags around my anchor example