diff options
author | Stanley Yip <33562077+yipstanley@users.noreply.github.com> | 2019-07-30 19:41:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 19:41:09 -0400 |
commit | 13f45e3c819aaafcff175256ffb8723642c22dca (patch) | |
tree | 00e38b12a22dcc52253e2d7c3e35efee42ad80cf /src/client/util/RichTextSchema.tsx | |
parent | 80e6356692da7bffaad2efccf01500173c488de0 (diff) | |
parent | a2a73a1ad032979ea6eea06aa65354841e0ef0fa (diff) |
Merge pull request #233 from browngraphicslab/text_box_ab
Text box ab
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index 269de0f42..ce9e29b26 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -283,7 +283,7 @@ export const marks: { [index: string]: MarkSpec } = { }, highlight: { - parseDOM: [{ style: 'background: #d9dbdd' }], + parseDOM: [{ style: 'color: blue' }], toDOM() { return ['span', { style: 'color: blue' @@ -291,6 +291,15 @@ export const marks: { [index: string]: MarkSpec } = { } }, + search_highlight: { + parseDOM: [{ style: 'background: yellow' }], + toDOM() { + return ['span', { + style: 'background: yellow' + }]; + } + }, + // :: MarkSpec Code font mark. Represented as a `<code>` element. code: { |