fix: Restrict content in notices, closes #5624

This commit is contained in:
Tom Moor
2023-07-29 23:42:26 -04:00
parent 1864ed605f
commit 3b43460a0a
4 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ export default class BulletList extends Node {
get schema(): NodeSpec {
return {
content: "list_item+",
group: "block",
group: "block list",
parseDOM: [{ tag: "ul" }],
toDOM: () => ["ul", 0],
};

View File

@@ -16,7 +16,7 @@ export default class CheckboxList extends Node {
get schema(): NodeSpec {
return {
group: "block",
group: "block list",
content: "checkbox_item+",
toDOM: () => ["ul", { class: this.name }, 0],
parseDOM: [

View File

@@ -26,7 +26,7 @@ export default class Notice extends Node {
default: "info",
},
},
content: "block+",
content: "(list | blockquote | hr | paragraph | heading | attachment)+",
group: "block",
defining: true,
draggable: true,

View File

@@ -23,7 +23,7 @@ export default class OrderedList extends Node {
},
},
content: "list_item+",
group: "block",
group: "block list",
parseDOM: [
{
tag: "ol",