diff options
author | bob <bcz@cs.brown.edu> | 2020-01-22 15:41:04 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-01-22 15:41:04 -0500 |
commit | bfebed91e12abca324d7a638adeb1da9755a9057 (patch) | |
tree | dae9d6b9b29b018f9025901175661141b78d60de /src/client/util/RichTextSchema.tsx | |
parent | 6b1e9b68c3d409df6ea2a8909b99d5d8d75226c5 (diff) |
basic cleanup for warnings
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index 1f70cafc4..5751c8c7e 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -306,7 +306,7 @@ export const marks: { [index: string]: MarkSpec } = { } }], toDOM(node: any) { - return node.attrs.color ? ['span', { style: 'color:' + node.attrs.color }] : ['span', { style: 'color: black' }]; + return node.attrs.color ? ['span', { style: 'color:' + node.attrs.color }] : ['span', 0]; } }, |