Merge pull request #1190 from matrix-org/luke/fix-rte-paste-html-md-on

Only insert HTML into the composer in RTE mode
pull/21833/head
Luke Barnard 2017-07-06 13:59:52 +01:00 committed by GitHub
commit d9a67355d2
1 changed files with 1 additions and 2 deletions

View File

@ -488,8 +488,7 @@ export default class MessageComposerInput extends React.Component {
const currentContent = this.state.editorState.getCurrentContent(); const currentContent = this.state.editorState.getCurrentContent();
let contentState = null; let contentState = null;
if (html && this.state.isRichtextEnabled) {
if (html) {
contentState = Modifier.replaceWithFragment( contentState = Modifier.replaceWithFragment(
currentContent, currentContent,
currentSelection, currentSelection,