Making WordPress.org

Changeset 13561


Ignore:
Timestamp:
04/18/2024 04:49:12 AM (8 months ago)
Author:
dd32
Message:

Support Forums: Remove additional format options that are not needed in the support Forums.

See https://github.com/Automattic/blocks-everywhere/pull/204.
See #7599.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-blocks.php

    r13549 r13561  
    8080        $settings['iso']['blocks']['allowBlocks'][] = 'core/embed';
    8181
    82         // Adds a table of contents button in the toolbar.
    83         $settings['toolbar']['toc'] = true;
    84 
    8582        // Adds a navigation button in the toolbar.
    86         $settings['toolbar']['navigation'] = true;
     83        $settings['toolbar']['navigation'] = false;
     84
     85        // We don't need these on the forums.
     86        $settings['unregisterFormatType'][] = 'core/keyboard';
     87        $settings['unregisterFormatType'][] = 'core/language';
     88        $settings['unregisterFormatType'][] = 'core/non-breaking-space';
     89        $settings['unregisterFormatType'][] = 'core/subscript';
     90        $settings['unregisterFormatType'][] = 'core/superscript';
     91        $settings['unregisterFormatType'][] = 'core/strikethrough';
     92        $settings['unregisterFormatType'][] = 'core/underline';
     93
     94        // WP Calypso editor adds some too.
     95        $settings['unregisterFormatType'][] = 'wpcom/justify';
     96        $settings['unregisterFormatType'][] = 'wpcom/underline';
    8797
    8898        // This will display a support link in an ellipsis menu in the top right of the editor.
Note: See TracChangeset for help on using the changeset viewer.