Fix disabled save button on message editor when pasting
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
020f15ca6f
commit
c286f2214f
1 changed files with 1 additions and 0 deletions
|
@ -179,6 +179,7 @@ export default class BasicMessageEditor extends React.Component {
|
||||||
const {partCreator} = model;
|
const {partCreator} = model;
|
||||||
const text = event.clipboardData.getData("text/plain");
|
const text = event.clipboardData.getData("text/plain");
|
||||||
if (text) {
|
if (text) {
|
||||||
|
this._modifiedFlag = true;
|
||||||
const range = getRangeForSelection(this._editorRef, model, document.getSelection());
|
const range = getRangeForSelection(this._editorRef, model, document.getSelection());
|
||||||
const parts = parsePlainTextMessage(text, partCreator);
|
const parts = parsePlainTextMessage(text, partCreator);
|
||||||
replaceRangeAndMoveCaret(range, parts);
|
replaceRangeAndMoveCaret(range, parts);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue