diff options
author | bob <bcz@cs.brown.edu> | 2019-06-12 13:51:28 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-12 13:51:28 -0400 |
commit | d6abc733fa6f0bffdbceb4a7bd4c7f449607ea21 (patch) | |
tree | 75b89cfb98d2fb783b9fca672138448e4d867857 | |
parent | f6bb5f269e04753669858e0994140984bc9d3915 (diff) |
don't want to parse all 'spans' as stars
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index 2c3fd8320..61ca4af5e 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -99,15 +99,15 @@ export const nodes: { [index: string]: NodeSpec } = { const attrs = { style: `width: 40px` }; return ["span", { ...node.attrs, ...attrs }]; }, - parseDOM: [{ - tag: "span", getAttrs(dom: any) { - return { - visibility: dom.getAttribute("visibility"), - oldtext: dom.getAttribute("oldtext"), - oldtextlen: dom.getAttribute("oldtextlen"), - } - } - }] + // parseDOM: [{ + // tag: "star", getAttrs(dom: any) { + // return { + // visibility: dom.getAttribute("visibility"), + // oldtext: dom.getAttribute("oldtext"), + // oldtextlen: dom.getAttribute("oldtextlen"), + // } + // } + // }] }, // :: NodeSpec An inline image (`<img>`) node. Supports `src`, // `alt`, and `href` attributes. The latter two default to the empty |