[wp-trac] [WordPress Trac] #12423: Include default code editor

WordPress Trac noreply at wordpress.org
Tue Mar 7 16:34:53 UTC 2017


#12423: Include 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 WraithKenny):

 Has anyone in wpa11y used any editor or service on this list
 https://codemirror.net/doc/realworld.html and found it better than normal?
 If so we could look into whatever they've done. There's some big projects
 on that list, including Adobe Brackets (and Dreamweaver), Bitbucket,
 Prose.io (github content editor), Codepen.io, JSFiddle, jsbin.com, Firefox
 Developer Tools, WebKit Web inspector.

 CodeMirror has dozens of themes, and it's just CSS so we can make some
 custom ones for Contrast and legibility if needed, or for branding.

 It also has configurable keybindings with preconfigured options for Vim,
 Emacs, and Sublime Text bindings, if anyone from wpa11y has used those,
 and feels those keybindings are more accessible.

 I think from this thread that the consensus is that the new editor should
 be opt-out. To achieve that, a button should be inserted before the
 editors (with js because it's a js enhancement), that would opt a user
 out, if the user hasn't selected a preference yet (neither yes nor no).
 Opting out should remove all CodeMirror instances and cleanup itself
 (including the buttons), and also post an ajax request to user preferences
 to remember the choice. (The preference will be available on edit user.)
 This would be the least obtrusive way I think. We don't need a no-js plan,
 as with js disabled, CodeMirror is disabled.

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


More information about the wp-trac mailing list