aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/marks_rts.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-19 14:40:24 -0400
committerbobzel <zzzman@gmail.com>2025-03-19 14:40:24 -0400
commit5ddd41905823fb77ca987517b63e46a63fe4d4ca (patch)
treec7c3da3e7a6155f6c645dcbc7ab0b6f550cc18cf /src/client/views/nodes/formattedText/marks_rts.ts
parent5e73c471b14d5007306fd1bedfdf349769bd5f82 (diff)
fixed focus() on text boxes to scroll into view by hacking around a breaking prosemirror patch.
Diffstat (limited to 'src/client/views/nodes/formattedText/marks_rts.ts')
-rw-r--r--src/client/views/nodes/formattedText/marks_rts.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/marks_rts.ts b/src/client/views/nodes/formattedText/marks_rts.ts
index ba8e4faed..dc1e4772e 100644
--- a/src/client/views/nodes/formattedText/marks_rts.ts
+++ b/src/client/views/nodes/formattedText/marks_rts.ts
@@ -316,9 +316,9 @@ export const marks: { [index: string]: MarkSpec } = {
attrs: {
selected: { default: false },
},
- parseDOM: [{ style: 'background: yellow' }],
+ parseDOM: [{ style: 'background: lightGray' }],
toDOM: node => {
- return ['span', { style: `background: ${node.attrs.selected ? 'orange' : 'yellow'}` }];
+ return ['span', { style: `background: ${node.attrs.selected ? 'orange' : 'lightGray'}` }];
},
},