aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-06-12 13:51:28 -0400
committerbob <bcz@cs.brown.edu>2019-06-12 13:51:28 -0400
commitd6abc733fa6f0bffdbceb4a7bd4c7f449607ea21 (patch)
tree75b89cfb98d2fb783b9fca672138448e4d867857 /src
parentf6bb5f269e04753669858e0994140984bc9d3915 (diff)
don't want to parse all 'spans' as stars
Diffstat (limited to 'src')
-rw-r--r--src/client/util/RichTextSchema.tsx18
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