Don't escape pasted text (#8014)
Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
parent
ec612fa0f1
commit
225581de6a
2 changed files with 11 additions and 7 deletions
|
@ -348,7 +348,7 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
|
|||
parts = deserializedParts;
|
||||
} else {
|
||||
const text = event.clipboardData.getData("text/plain");
|
||||
parts = parsePlainTextMessage(text, partCreator);
|
||||
parts = parsePlainTextMessage(text, partCreator, { shouldEscape: false });
|
||||
}
|
||||
this.modifiedFlag = true;
|
||||
const range = getRangeForSelection(this.editorRef.current, model, document.getSelection());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue