fix: Improved pasting behavior from Dropbox Paper
This commit is contained in:
@@ -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],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -89,6 +89,7 @@ export default class CodeFence extends Node {
|
||||
defining: true,
|
||||
draggable: false,
|
||||
parseDOM: [
|
||||
{ tag: "code" },
|
||||
{ tag: "pre", preserveWhitespace: "full" },
|
||||
{
|
||||
tag: ".code-block",
|
||||
|
||||
Reference in New Issue
Block a user