Post/Page editor loads twice

No, this is not a normal behavior. Try to set default editor, and that should fix it. If it does not fix the problem, you may have one of your plugins causing it. Deactivate all plugins, and then reactivate them, one by one, until you find one, which is responsible. Code below goes to functions.php: … Read more

Gutenberg Block empty after reload of editor

I was able to make your block save and load on refresh by changing the edit to so: edit: function(props) { return [ el( ‘div’, { className : props.className }, el( ‘div’, null, el( RichText, { multiline: null, formattingControls: [‘link’], onChange: function (element) { props.setAttributes({link: element}); }, tagName: ‘div’, value: props.attributes.link, } ) ) ) … Read more

How to hide the Text Color icon from Visual Editor of WordPress Post Editor from Users other than Admins?

This should work if you add it to your functions.php file. It targets the buttons on the second row in your text editor. To target the first row, use the mce_buttons hook instead of mce_buttons_2. /** * Removes text color button from tiny mce editor */ add_filter( ‘mce_buttons_2’, ‘remove_tiny_mce_buttons’); function remove_tiny_mce_buttons( $buttons ) { if … Read more