aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-06-23 21:14:55 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-06-23 21:14:55 -0400
commit62cbed8b69ca2b2a6c8e42053bca900646f7d0d1 (patch)
tree1202ef4267ce4337d7ae3f937be16cfedcdff219 /src
parent296773913aa7817bb8d7856ebb678c69b40a1abb (diff)
parent818d3a367648f7dbb279e13aa197ffbae412fbd0 (diff)
Merge branch 'text_box_ab' into templatesMac
Diffstat (limited to 'src')
-rw-r--r--src/client/util/RichTextSchema.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index 820d17a14..f3f6655af 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -350,6 +350,16 @@ export const marks: { [index: string]: MarkSpec } = {
/** FONT SIZES */
+ pFontSize: {
+ attrs: {
+ fontSize: { default: 10 }
+ },
+ inclusive: false,
+ parseDOM: [{ style: 'font-size: 10px;' }],
+ toDOM: (node) => ['span', {
+ style: `font-size: ${node.attrs.fontSize}px;`
+ }]
+ },
p10: {
parseDOM: [{ style: 'font-size: 10px;' }],