add blockquote rte button

This commit is contained in:
Shawn Erquhart 2017-07-31 13:08:56 -04:00
parent 9dcda7b0b9
commit 406ae57d3e
2 changed files with 3 additions and 1 deletions

View File

@ -62,9 +62,10 @@ export default class Toolbar extends React.Component {
{ label: 'Code', icon: 'code-alt', state: buttons.code },
{ label: 'Header 1', icon: 'h1', state: buttons.h1 },
{ label: 'Header 2', icon: 'h2', state: buttons.h2 },
{ label: 'Code Block', icon: 'code', state: buttons.codeBlock },
{ label: 'Quote', icon: 'quote', state: buttons.quote },
{ label: 'Bullet List', icon: 'list-bullet', state: buttons.list },
{ label: 'Numbered List', icon: 'list-numbered', state: buttons.listNumbered },
{ label: 'Code Block', icon: 'code', state: buttons.codeBlock },
{ label: 'Link', icon: 'link', state: buttons.link },
];

View File

@ -178,6 +178,7 @@ export default class Editor extends Component {
list: this.getButtonProps('bulleted-list', { isBlock: true }),
listNumbered: this.getButtonProps('numbered-list', { isBlock: true }),
codeBlock: this.getButtonProps('code', { isBlock: true }),
quote: this.getButtonProps('quote', { isBlock: true }),
}}
onToggleMode={this.handleToggle}
plugins={this.state.shortcodePlugins}