[wp-trac] [WordPress Trac] #12423: Include Ace (or similar) as default code editor

WordPress Trac noreply at wordpress.org
Thu Feb 16 21:28:21 UTC 2017


#12423: Include Ace (or similar) as default code editor
-----------------------------+----------------------------
 Reporter:  scribu           |       Owner:  afercia
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  4.8
Component:  Editor           |     Version:  3.0
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  accessibility
-----------------------------+----------------------------

Comment (by afercia):

 Replying to [comment:36 lukecavanagh]:
 > In relation to ACE and screen readers I did see this issue.
 >
 > https://github.com/ajaxorg/ace/issues/2164

 Thanks, interesting reading (especially the comments from Mr. Garaventa)
 that may help people understand why the technical choice implemented by
 CodeMirror and ACE is basically a hack.

 > In Ace we have textarea focused, which is used for capturing input and
 it's value is being reset after each keystroke. Visible text is not a part
 of the focused element, and selection is just a div.

 Altering the native behavior of a control (in this case a textarea gets
 cleared out so there's no content to announce) actually means destroying
 the native level of accessibility that assistive technologies can
 understand. If there's really the need to alter in such a way the native
 behavior of a control, then it should be a developer's responsibility to
 rebuild that level of accessibility he/she just destroyed.

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


More information about the wp-trac mailing list