From b88af3a4ae642916a4fe1bafe7ad556054971152 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 19 Dec 2017 17:31:38 -0500 Subject: [PATCH] Proivder: Add default blockTypes value to EditorProvider --- editor/components/provider/index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/editor/components/provider/index.js b/editor/components/provider/index.js index 7a0342faf30d3..56cec234d2719 100644 --- a/editor/components/provider/index.js +++ b/editor/components/provider/index.js @@ -23,19 +23,22 @@ import { setupEditor, undo } from '../../store/actions'; import store from '../../store'; /** - * The default editor settings - * You can override any default settings when calling createEditorInstance + * Default editor settings * - * wideImages boolean Enable/Disable Wide/Full Alignments + * Default settings can be overridden when calling createEditorInstance + * + * wideImages {Boolean} Whether wide/full alignments are available + * maxWidth {Number} Max width of the block inner area, used to + * constrain image resizing + * blockTypes {(Boolean|String[])} Allowed block types, defaulting to true (all + * block types allowed) * * @var {Object} DEFAULT_SETTINGS */ const DEFAULT_SETTINGS = { wideImages: false, - - // This is current max width of the block inner area - // It's used to constraint image resizing and this value could be overriden later by themes maxWidth: 608, + blockTypes: true, }; class EditorProvider extends Component {