mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Only insert HTML into the composer in RTE mode
If MD mode is enabled, paste the plaintext equivalent.
This commit is contained in:
parent
3e93930dcc
commit
bdefb35c64
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue