[wp-trac] [WordPress Trac] #26986: Editor Deletes Empty Spans

WordPress Trac noreply at wordpress.org
Wed Feb 12 13:12:12 UTC 2014


#26986: Editor Deletes Empty Spans
--------------------------+------------------
 Reporter:  GeJay         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9
Component:  TinyMCE       |     Version:  3.8
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------

Comment (by markcallen):

 Where appropriate use a screen reader class to populate the span.

 TwentyFourteen has one ready, as does Bootstrap and others. You can just
 copy the styles to create your own if necessary.

 It would then look something like this

 {{{<span class="genericon genericon-wordpress"><span class="screen-reader-
 text">WordPress</span></span>}}}

 This wins on all fronts
 * Content is kept on save
 * It stays in place when changing between Visual/Text views
 * Content is not displayed
 * Screen readers get something meaningful

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


More information about the wp-trac mailing list