switch to using 'code' for both blocks & marks to match md-serializer
This commit is contained in:
parent
294565c47e
commit
864a33f978
3 changed files with 7 additions and 7 deletions
|
@ -356,7 +356,7 @@ export default class MessageComposer extends React.Component {
|
|||
let formatBar;
|
||||
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(
|
||||
const formatButtons = ["bold", "italic", "deleted", "underlined", "inline-code", "block-quote", "bulleted-list", "numbered-list"].map(
|
||||
(name) => {
|
||||
const active = marks.some(mark => mark.type === name) || blockType === name;
|
||||
const suffix = active ? '-on' : '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue