1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

ensure step before formatting is persisted in undo history

This commit is contained in:
Bruno Windels
2019-09-05 15:34:42 +02:00
parent 8820546f49
commit 9dac91a70d
2 changed files with 8 additions and 3 deletions

View File

@@ -437,6 +437,7 @@ export default class BasicMessageEditor extends React.Component {
if (range.length === 0) {
return;
}
this.historyManager.ensureLastChangesPushed(this.props.model);
switch (action) {
case "bold":
formatInline(range, "**");