Merge pull request #2076 from matrix-org/t3chguy/slate_cont2
Slate Fixes
This commit is contained in:
commit
b8ca65627b
1 changed files with 3 additions and 2 deletions
|
@ -983,8 +983,9 @@ export default class MessageComposerInput extends React.Component {
|
||||||
// that we will silently discard nested blocks (e.g. nested lists) :(
|
// that we will silently discard nested blocks (e.g. nested lists) :(
|
||||||
const fragment = this.html.deserialize(transfer.html);
|
const fragment = this.html.deserialize(transfer.html);
|
||||||
return change
|
return change
|
||||||
.setOperationFlag("skip", false)
|
// XXX: this somehow makes Slate barf on undo and get too empty and break entirely
|
||||||
.setOperationFlag("merge", false)
|
// .setOperationFlag("skip", false)
|
||||||
|
// .setOperationFlag("merge", false)
|
||||||
.insertFragment(fragment.document);
|
.insertFragment(fragment.document);
|
||||||
} else {
|
} else {
|
||||||
// in MD mode we don't want the rich content pasted as the magic was annoying people so paste plain
|
// in MD mode we don't want the rich content pasted as the magic was annoying people so paste plain
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue