[wp-trac] [WordPress Trac] #12423: Include default code editor
WordPress Trac
noreply at wordpress.org
Tue Jun 6 21:25:01 UTC 2017
#12423: Include default code editor
-----------------------------+------------------------------
Reporter: scribu | Owner: georgestephanis
Type: feature request | Status: assigned
Priority: normal | Milestone: Future Release
Component: Editor | Version: 3.0
Severity: normal | Resolution:
Keywords: close | Focuses: accessibility
-----------------------------+------------------------------
Comment (by georgestephanis):
It's not terribly pretty, but here we go:
https://github.com/georgestephanis/codemirror-wp
Once you clone it to your plugins directory, you'll need to `npm install`
and `npm run-script build` to generate the include-able versions of the
CodeMirror files from within the `CodeMirror` subdirectory.
This isn't generating any minified versions of the files, but until we
decide which addons and languages we want to bundle support for into Core,
this makes sure we have all the options available to us for enqueueing as
needed.
It will work for CSS and PHP files in the Theme Editor currently. I'll be
adding support for the Plugin editor soon as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12423#comment:126>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list