Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mkesicki CreditAttribution: mkesicki commentedI 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.
Comment #2
Sarah_G CreditAttribution: Sarah_G commentedSorry, 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
Comment #3
jonraedeke CreditAttribution: jonraedeke commentedIn 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
Comment #3.0
jonraedeke CreditAttribution: jonraedeke commentedSorry, I needed to put code tags around my anchor example