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

WordPress Trac noreply at wordpress.org
Wed Sep 13 18:18:38 UTC 2017


#12423: Include default code editor
---------------------------------------------+----------------------------
 Reporter:  scribu                           |       Owner:  westonruter
     Type:  feature request                  |      Status:  closed
 Priority:  normal                           |   Milestone:  4.9
Component:  Editor                           |     Version:  3.0
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch commit needs-dev-note  |     Focuses:  accessibility
---------------------------------------------+----------------------------

Comment (by westonruter):

 Replying to [comment:145 westonruter]:
 > * I'm aware that it would be ideal if the CodeMirror bundling logic (via
 browserify) could be added as part of core. For now, just the minified
 bundles are being included.
 > * The linters are being included as separate assets. They are not being
 minified, other than they are already minified as distributed. These could
 either benefit from additional uglification or bundling with codemirror if
 they are not going to be enqueued separately.

 See #41870.

 > * PHPUnit tests should be added for `wp_enqueue_code_editor()` and
 `WP_Widget_Custom_HTML`.

 See #41871.

 > * There is no PHP linter yet. This would be a good enhancement. See
 https://github.com/WordPress/better-code-editing/issues/48

 See #41873.

 > * While there is an HTMLHint rule which checks for Kses violations, this
 does not extend to CSSLint and `safecss_filter_attr()`. It would be a nice
 enhancement to get illegal style properties flagged as lint errors as
 well. See https://github.com/WordPress/better-code-editing/issues/60

 See #41874.

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


More information about the wp-trac mailing list