mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
set dirty flag when programatically inserting text like with newlines
This commit is contained in:
parent
5565eca0cb
commit
6163cefa6a
1 changed files with 1 additions and 0 deletions
|
@ -175,6 +175,7 @@ export default class BasicMessageEditor extends React.Component {
|
||||||
const newText = text.substr(0, caret.offset) + textToInsert + text.substr(caret.offset);
|
const newText = text.substr(0, caret.offset) + textToInsert + text.substr(caret.offset);
|
||||||
caret.offset += textToInsert.length;
|
caret.offset += textToInsert.length;
|
||||||
this.props.model.update(newText, inputType, caret);
|
this.props.model.update(newText, inputType, caret);
|
||||||
|
this._modifiedFlag = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is used later to see if we need to recalculate the caret
|
// this is used later to see if we need to recalculate the caret
|
||||||
|
|
Loading…
Reference in a new issue