aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/RichTextSchema.tsx
diff options
context:
space:
mode:
authorlaurawilsonri <laura_wilson@brown.edu>2019-04-08 18:24:06 -0400
committerlaurawilsonri <laura_wilson@brown.edu>2019-04-08 18:24:06 -0400
commitb3246c495a1e116abe7ab7abea347126eead4e0d (patch)
tree7d08a466e4b8ae93d0018b3eacb0d0cbb83f2cb6 /src/client/util/RichTextSchema.tsx
parent03b2c984d581e18ed898cb097b12ab3ec70c833d (diff)
bulleting works with some bugsbugs, font styles in progress
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r--src/client/util/RichTextSchema.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index 2a3c1da6e..98c22204a 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -222,7 +222,15 @@ export const marks: { [index: string]: MarkSpec } = {
code: {
parseDOM: [{ tag: "code" }],
toDOM() { return codeDOM }
- }
+ },
+
+
+ timesNewRoman: {
+ parseDOM: [{ style: 'font-family: "Times New Roman", Times, serif;' }],
+ toDOM: () => ['span', {
+ style: 'font-family: "Times New Roman", Times, serif;'
+ }]
+ },
}
// :: Schema