Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/EditorToolbarConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ 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,
BLOCK_TYPE_DROPDOWN,
BLOCK_TYPE_BUTTONS,
};

export default EditorToolbarConfig;
export default DefaultToolbarConfig