aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/RichTextSchema.tsx
diff options
context:
space:
mode:
authormonikahedman <monika_hedman@brown.edu>2019-08-06 17:55:43 -0400
committermonikahedman <monika_hedman@brown.edu>2019-08-06 17:55:43 -0400
commit030af1b9112cd12383abcd7f35142cc382ea4d6a (patch)
treed457a36e8222bfb974374db34addecbeb9edf463 /src/client/util/RichTextSchema.tsx
parent17cab0166753aee765585e1eb700fd85583e7cbb (diff)
end of day 8/6
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r--src/client/util/RichTextSchema.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index 491208c4c..8e80de1a8 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -193,6 +193,12 @@ export const nodes: { [index: string]: NodeSpec } = {
}
},
+ checkbox_list2: {
+ inline: false,
+ // content: 'list_item+',
+ group: 'block'
+ },
+
// :: NodeSpec A hard line break, represented in the DOM as `<br>`.
hard_break: {
inline: true,
@@ -215,6 +221,15 @@ export const nodes: { [index: string]: NodeSpec } = {
// parseDOM: [{ tag: "ul" }, { style: 'list-style-type=disc' }],
// toDOM() { return ulDOM }
},
+ checkbox_list: {
+ ...bulletList,
+ content: 'list_item+',
+ group: 'block',
+ // style: 'list-style-type:none'
+ itemContent: "+",
+ // parseDOM: [{ tag: "ul" }, { style: 'list-style-type=square' }],
+ // toDOM() { return ulDOM; }
+ },
//bullet_list: {
// content: 'list_item+',
// group: 'block',