How to filter or remove default panels in Gutenberg PrePublish Panel

I would like to edit the text or remove and re-create the Publish panel of Gutenberg’s PrePublish Panel in the editor sidebar. I know I can use wp.data.dispatch( ‘core/edit-post’ ).removeEditorPanel( ‘example-panel’ ); but it doesn’t seem to work for any panels in editor-post-publish-panel. Any ideas? The background is that I used the slotfill API to … Read more

wp_editor textarea value not updating

I am using the *_add_form_fields action to add fields to a custom taxonomy. One of those fields is a wp_editor(). The problem I am facing is that when I output the WordPress editor on the page like so: wp_editor(‘test’, ‘mydescription’, array(‘textarea_name’ => ‘my_description’)); and then if I click in the editor on the page and … Read more

Adding Custom Text Patterns in the WP 4.5 Visual Editor

4.5 is out and with it new Text Patterns. I would like to know how to go about adding my own custom patterns. Taking a look at wp-includes/js/tinymce/plugins/wptextpattern/plugin.js it seems pretty straight forward. var spacePatterns = [ { regExp: /^[*-]\s/, cmd: ‘InsertUnorderedList’ }, { regExp: /^1[.)]\s/, cmd: ‘InsertOrderedList’ } ]; var enterPatterns = [ { … Read more