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

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 20 20:51:37 UTC 2012


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

Comment (by WraithKenny):

 CodeMirror is a  solid and unobtrusive editor (degrades gracefully, ie,
 doesn't impact without javascript) which is simple to include into the
 plugin/theme editor pages. For example, I've quickly integrated it into
 Scripts-n-Styles to see what would be involved (and because I thought it'd
 be useful):

 https://github.com/unFocus/Scripts-n-Styles/blob/master/js/code-editor.js
 [[BR]]
 https://github.com/unFocus/Scripts-n-Styles/blob/master/includes/class.SnS_Admin_Code_Editor.php
 [[BR]]
 https://github.com/unFocus/Scripts-n-Styles/blob/master/css/code-
 editor.css

 The CodeMirror part of it works great (though there are bugs in the wp
 side of the editor). There are also quite a few other plugins that
 configure CodeMirror in more advanced ways, to include Search-n-Replace,
 Auto-complete, and more. (This also means it is somewhat tested in the
 wordpress environment.)

 CodeMirror is open and actively developed
 https://github.com/marijnh/CodeMirror2/graphs/impact

 Supports Firefox 2+, Chrome (any version), Safari 3+, Internet Explorer
 6+, Opera 9+ http://codemirror.net/

 Anyone still interested in this? I think I remember something about
 splitting the editors completely out of core and into a "Core Plugin" like
 the importer plugin. If so, any interest in that? (I'd contribute if it
 had blessing.)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12423#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list