Skip to content

Commit

Permalink
Support Forums: Remove additional format options that are not needed …
Browse files Browse the repository at this point in the history
…in the support Forums.

See Automattic/blocks-everywhere#204.
See #7599.


git-svn-id: https://meta.svn.wordpress.org/sites/trunk@13561 74240141-8908-4e6f-9713-ba540dce6ec7
  • Loading branch information
dd32 committed Apr 18, 2024
1 parent b082359 commit cecb441
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,21 @@ public function editor_settings( $settings ) {
// Allows embeds and might fix pasting links sometimes not working.
$settings['iso']['blocks']['allowBlocks'][] = 'core/embed';

// Adds a table of contents button in the toolbar.
$settings['toolbar']['toc'] = true;

// Adds a navigation button in the toolbar.
$settings['toolbar']['navigation'] = true;
$settings['toolbar']['navigation'] = false;

// We don't need these on the forums.
$settings['unregisterFormatType'][] = 'core/keyboard';
$settings['unregisterFormatType'][] = 'core/language';
$settings['unregisterFormatType'][] = 'core/non-breaking-space';
$settings['unregisterFormatType'][] = 'core/subscript';
$settings['unregisterFormatType'][] = 'core/superscript';
$settings['unregisterFormatType'][] = 'core/strikethrough';
$settings['unregisterFormatType'][] = 'core/underline';

// WP Calypso editor adds some too.
$settings['unregisterFormatType'][] = 'wpcom/justify';
$settings['unregisterFormatType'][] = 'wpcom/underline';

// This will display a support link in an ellipsis menu in the top right of the editor.
$settings['iso']['moreMenu'] = true;
Expand Down

0 comments on commit cecb441

Please sign in to comment.