Change the editor options
-
With the filter ‘blocks_everywhere_editor_settings’ I’m trying to change the options or remove parts from the editor toolbar. Like the three dots on the right and the arrow down / alignment options.
But everything what I do with the filter doesn’t return on the front page. I use blocks_everywhere together with bbPress. Also the comment textarea has blocks_everywhere.
Example of my filter code:
function blocks_everywhere_editor_settings_custom($settings) { //var_dump($settings); $settings['iso']['blocks']['allowBlocks'][] = ['**/imagecard']; $settings['iso']['toolbar']['navigation'] = false; $settings['editor']['titlePlaceholder'] = 'test'; $settings['editor']['disableLayoutStyles'] = false; $settings['editor']['richEditingEnabled'] = false; return $settings; } add_filter('blocks_everywhere_editor_settings', 'blocks_everywhere_editor_settings_custom', 10, 2);
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Change the editor options’ is closed to new replies.