Fix formatting buttons not marking the composer as modified

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-02-27 11:01:22 +00:00
parent 248e467537
commit b3fbcd4521

View File

@ -563,6 +563,7 @@ export default class BasicMessageEditor extends React.Component {
return; return;
} }
this.historyManager.ensureLastChangesPushed(this.props.model); this.historyManager.ensureLastChangesPushed(this.props.model);
this._modifiedFlag = true;
switch (action) { switch (action) {
case "bold": case "bold":
toggleInlineFormat(range, "**"); toggleInlineFormat(range, "**");