This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Description
Building off of #216 some ideas for how we can improve the post editor control:
- Allow the
closeEditor and openEditor to be labels defined on the registered post type object itself, allowing them to be customized per post type.
- Move code related to instantiating the
wp_editor into the WP_Customize_Post_Editor_Control itself (static methods added once):
- Provide some more information in the collapsed post editor control in the pane about the contents of the setting. For example, there could be a word count:
- Allow a
PostEditorControl to have params which include which TinyMCE buttons should be made available. For example, there may be some postmeta field where only basic HTML should be allowed. When the editor is shown for this expanded control, then only the relevant TinyMCE buttons should be displayed. The full suite of controls should then be displayed when going back to edit post_content. Not totally sure of the feasibility of doing this declaratively via control params, but it could be handy.