diff options
author | bob <bcz@cs.brown.edu> | 2019-08-27 10:27:50 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-08-27 10:27:50 -0400 |
commit | 2b1035aa307a0cea6076030822cd5bb3c9793fb4 (patch) | |
tree | db41afd8c5e17d58b89f69fb5a8b35c2d3e66b98 /src/client/util/RichTextSchema.tsx | |
parent | d31999dd3fce11a886bd402c27f34c35c7c85935 (diff) |
last refinements for now.
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index 2df49d8a4..bbced3b77 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -175,7 +175,7 @@ export const nodes: { [index: string]: NodeSpec } = { content: 'list_item+', group: 'block', attrs: { - bulletStyle: { default: "decimal" }, + bulletStyle: { default: "" }, }, toDOM(node: Node<any>) { for (let i = 0; i < node.childCount; i++) node.child(i).attrs.className = node.attrs.bulletStyle; @@ -189,9 +189,10 @@ export const nodes: { [index: string]: NodeSpec } = { content: 'list_item+', group: 'block', // parseDOM: [{ tag: "ul" }, { style: 'list-style-type=disc' }], - // toDOM() { return ['ol', { - // style: 'list-type: hebrew' - // }] } + toDOM(node: Node<any>) { + for (let i = 0; i < node.childCount; i++) node.child(i).attrs.className = ""; + return ['ul', 0] + } }, //bullet_list: { |