hide formatting bar for MD editor
This commit is contained in:
parent
f981d7b729
commit
e460cf35e0
2 changed files with 2 additions and 4 deletions
|
@ -354,7 +354,7 @@ export default class MessageComposer extends React.Component {
|
|||
}
|
||||
|
||||
let formatBar;
|
||||
if (this.state.showFormatting) {
|
||||
if (this.state.showFormatting && this.state.inputState.isRichTextEnabled) {
|
||||
const {marks, blockType} = this.state.inputState;
|
||||
const formatButtons = ["bold", "italic", "deleted", "underlined", "code", "block-quote", "bulleted-list", "numbered-list"].map(
|
||||
(name) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue