fix: Improved pasting behavior from Dropbox Paper

This commit is contained in:
Tom Moor
2022-01-25 22:01:51 -08:00
parent bc40a0074a
commit 13b8ed58fd
4 changed files with 26 additions and 5 deletions

View File

@@ -16,7 +16,11 @@ export default class Blockquote extends Node {
content: "block+",
group: "block",
defining: true,
parseDOM: [{ tag: "blockquote" }],
parseDOM: [
{ tag: "blockquote" },
// Dropbox Paper parsing, yes their quotes are actually lists
{ tag: "ul.listtype-quote", contentElement: "li" },
],
toDOM: () => ["blockquote", 0],
};
}

View File

@@ -89,6 +89,7 @@ export default class CodeFence extends Node {
defining: true,
draggable: false,
parseDOM: [
{ tag: "code" },
{ tag: "pre", preserveWhitespace: "full" },
{
tag: ".code-block",