Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 8, 2018
1 parent 667322a commit ad7680d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions editor/components/rich-text/format-toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from '@wordpress/components';
import { keycodes } from '@wordpress/utils';
import { prependHTTP } from '@wordpress/url';
import { applyFilters } from '@wordpress/hooks';

/**
* Internal dependencies
Expand All @@ -22,7 +23,7 @@ import { filterURLForDisplay } from '../../../utils/url';

const { ESCAPE, LEFT, RIGHT, UP, DOWN, BACKSPACE, ENTER, displayShortcut } = keycodes;

const FORMATTING_CONTROLS = [
const FORMATTING_CONTROLS = applyFilters( 'editor.richText.formattingControls', [
{
icon: 'editor-bold',
title: __( 'Bold' ),
Expand All @@ -47,7 +48,7 @@ const FORMATTING_CONTROLS = [
shortcut: displayShortcut.primary( 'k' ),
format: 'link',
},
];
] );

// Default controls shown if no `enabledControls` prop provided
const DEFAULT_CONTROLS = [ 'bold', 'italic', 'strikethrough', 'link' ];
Expand Down

0 comments on commit ad7680d

Please sign in to comment.