Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3459 from matrix-org/t3chguy/editing_enable_onPaste
Browse files Browse the repository at this point in the history
Fix disabled save button on message editor when pasting
  • Loading branch information
t3chguy authored Sep 19, 2019
2 parents 020f15c + c286f22 commit 1a33037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/rooms/BasicMessageComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export default class BasicMessageEditor extends React.Component {
const {partCreator} = model;
const text = event.clipboardData.getData("text/plain");
if (text) {
this._modifiedFlag = true;
const range = getRangeForSelection(this._editorRef, model, document.getSelection());
const parts = parsePlainTextMessage(text, partCreator);
replaceRangeAndMoveCaret(range, parts);
Expand Down

0 comments on commit 1a33037

Please sign in to comment.