diff --git a/README.md b/README.md index f54bcee1..7150f269 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,8 @@ render() { ``` +When `toolbarConfig` is not specified, the Defaults are loaded from [`EditorToolbarConfig.js`](./src/lib/EditorToolbarConfig.js) + ## Motivation In short, this is a modern approach to rich text editing built on a battle-hardened open-source framework and, importantly, we do not store document state in the DOM, eliminating entire classes of common "WYSIWYG" problems. diff --git a/src/lib/EditorToolbarConfig.js b/src/lib/EditorToolbarConfig.js index 4d91389f..fbc249ed 100644 --- a/src/lib/EditorToolbarConfig.js +++ b/src/lib/EditorToolbarConfig.js @@ -54,7 +54,7 @@ export const BLOCK_TYPE_BUTTONS: StyleConfigList = [ {label: 'Blockquote', style: 'blockquote'}, ]; -let EditorToolbarConfig: ToolbarConfig = { +let DefaultToolbarConfig: ToolbarConfig = { display: ['INLINE_STYLE_BUTTONS', 'BLOCK_ALIGNMENT_BUTTONS', 'BLOCK_TYPE_BUTTONS', 'LINK_BUTTONS', 'IMAGE_BUTTON', 'BLOCK_TYPE_DROPDOWN', 'HISTORY_BUTTONS'], INLINE_STYLE_BUTTONS, BLOCK_ALIGNMENT_BUTTONS, @@ -62,4 +62,4 @@ let EditorToolbarConfig: ToolbarConfig = { BLOCK_TYPE_BUTTONS, }; -export default EditorToolbarConfig; +export default DefaultToolbarConfig