diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-07-04 14:08:00 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-07-04 14:08:00 -0400 |
commit | d479f5e6bcdb7d1a0edb2f8cf366549abe2a910b (patch) | |
tree | 31ed3902c5571aec2de1d5743f990ef0723d5234 /src/client/util/RichTextSchema.tsx | |
parent | e56a29faab91c5059af41e0b2abd79e46eacce0c (diff) |
added text font color setting. adding interactive border radius. moved main toolbar.
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index 63c879d67..2a57180d3 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -348,6 +348,17 @@ export const marks: { [index: string]: MarkSpec } = { }] }, + pFontColor: { + attrs: { + color: { default: "yellow" } + }, + parseDOM: [{ style: 'background: #d9dbdd' }], + toDOM: (node) => { + return ['span', { + style: `color: ${node.attrs.color}` + }]; + } + }, /** FONT SIZES */ pFontSize: { |