This repository was archived by the owner on Dec 16, 2022. It is now read-only.
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Enhance the post editor control #221
Open
Description
Building off of #216 some ideas for how we can improve the post editor control:
- Allow the
closeEditor
andopenEditor
to belabels
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 theWP_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 haveparams
which include which TinyMCE buttons should be made available. For example, there may be somepostmeta
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 editpost_content
. Not totally sure of the feasibility of doing this declaratively via controlparams
, but it could be handy.
Metadata
Metadata
Assignees
Labels
No labels