[wp-trac] [WordPress Trac] #41897: Code Editor: Add reusable code editor Customizer control
WordPress Trac
noreply at wordpress.org
Fri Oct 20 16:38:39 UTC 2017
#41897: Code Editor: Add reusable code editor Customizer control
---------------------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: high | Milestone: 4.9
Component: Customize | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit needs-dev-note | Focuses:
---------------------------------------------+--------------------------
Comment (by westonruter):
In [changeset:"41957"]:
{{{
#!CommitTicketReference repository="" revision="41957"
Code Editor: Improve ability to create Customizer `CodeEditorControl`
instances in JS, lessening PHP dependencies.
Allow `CodeEditorControl` to be instantiated with a `editor_settings`
param which is merged with `wp.codeEditor.defaultSettings`.
Also:
* Turn redundant "CSS Code" control label into screen reader text for
Additional CSS.
* Remove `code-editor` as script dependency for `custom-html-widgets`
since enqueueing is determined by `wp_enqueue_code_editor()`.
* Remove useless exporting of `code_type` param to JS in
`WP_Customize_Code_Editor_Control`.
* Add `disabled` class to Custom HTML widget's Save button when linting
errors are present.
* Remove redundant `span` inside CodeEditorControl's `label`.
See #41897, #12423, #41872.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41897#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list