diff options
author | bob <bcz@cs.brown.edu> | 2019-09-06 11:37:59 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-06 11:37:59 -0400 |
commit | 2707e0898d535cc143272b7bf3b80f829368c097 (patch) | |
tree | c8fc8e37ee160a72673cf999c56642f1750ac043 /src/client/util/RichTextSchema.tsx | |
parent | eb05b987d7a1b2ca2e50268a0c15f2de7d44c5bd (diff) |
added metadata ui for text
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index baa95acb0..5ee445590 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -315,6 +315,12 @@ export const marks: { [index: string]: MarkSpec } = { } }, + metadata: { + toDOM() { + return ['span', { style: 'border-radius:5px; background:rgba(100, 100, 100, 0.1); box-shadow: black 1px 1px 1px' }]; + } + }, + highlight: { parseDOM: [ { |