mirror of https://github.com/vector-im/riot-web
Only insert HTML into the composer in RTE mode
If MD mode is enabled, paste the plaintext equivalent.pull/21833/head
parent
3e93930dcc
commit
bdefb35c64
|
@ -488,8 +488,7 @@ export default class MessageComposerInput extends React.Component {
|
|||
const currentContent = this.state.editorState.getCurrentContent();
|
||||
|
||||
let contentState = null;
|
||||
|
||||
if (html) {
|
||||
if (html && this.state.isRichtextEnabled) {
|
||||
contentState = Modifier.replaceWithFragment(
|
||||
currentContent,
|
||||
currentSelection,
|
||||
|
|
Loading…
Reference in New Issue