Skip to content

Commit 536acef

Browse files
authored
FIX: copy-paste html block by increasing its parsing priority (#36617)
1 parent a3caa0a commit 536acef

File tree

1 file changed

+3
-1
lines changed
  • frontend/discourse/app/static/prosemirror/extensions

1 file changed

+3
-1
lines changed

frontend/discourse/app/static/prosemirror/extensions/html-block.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const extension = {
1010
defining: true,
1111
marks: "",
1212
selectable: true,
13-
parseDOM: [{ tag: "pre.html-block", preserveWhitespace: "full" }],
13+
parseDOM: [
14+
{ priority: 60, tag: "pre.html-block", preserveWhitespace: "full" },
15+
],
1416
toDOM() {
1517
return ["pre", { class: "html-block" }, ["code", 0]];
1618
},

0 commit comments

Comments
 (0)