You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Merge pull request #2076 from matrix-org/t3chguy/slate_cont2
Slate Fixes
This commit is contained in:
@@ -983,8 +983,9 @@ export default class MessageComposerInput extends React.Component {
|
||||
// that we will silently discard nested blocks (e.g. nested lists) :(
|
||||
const fragment = this.html.deserialize(transfer.html);
|
||||
return change
|
||||
.setOperationFlag("skip", false)
|
||||
.setOperationFlag("merge", false)
|
||||
// XXX: this somehow makes Slate barf on undo and get too empty and break entirely
|
||||
// .setOperationFlag("skip", false)
|
||||
// .setOperationFlag("merge", false)
|
||||
.insertFragment(fragment.document);
|
||||
} else {
|
||||
// in MD mode we don't want the rich content pasted as the magic was annoying people so paste plain
|
||||
|
||||
Reference in New Issue
Block a user