[wp-trac] [WordPress Trac] #38115: Add Highlight button to TinyMCE toolbar to allow highlighting (replaces Underline with <mark> element)

WordPress Trac noreply at wordpress.org
Wed Sep 21 19:59:32 UTC 2016


#38115: Add Highlight button to TinyMCE toolbar to allow highlighting (replaces
Underline with <mark> element)
-------------------------+------------------------------
 Reporter:  mor10        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  TinyMCE      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by mrwweb):

 Do we have any data on how well themes style this and/or whether the
 default browsers styles work well with most designs? I have used `<mark>`
 in the past (it should probably be my favorite HTML, I suppose...)

 Additionally, I went back to review [the definition of
 <mark>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark)
 and it makes me wary:

 > Do not confuse the <mark> element with the <strong> element. The
 <strong> element is used to denote spans of text of importance in context
 of the text, when the <mark> element is used to denote spans of text of
 relevance to a different context.

 This feels to me like something theme authors should opt into. Give how
 easy it is to filter buttons or add the styleselect (where you can give it
 a semantically appropriate name), I'm not sure I'd back adding it to the
 editor by default. Is this something people would be able to use correctly
 enough to make it worth including?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38115#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list