aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/RichTextSchema.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2020-01-07 15:18:54 -0500
committerbob <bcz@cs.brown.edu>2020-01-07 15:18:54 -0500
commit8ab1e09906399232aa9bc7017b3195f4cd0ff746 (patch)
tree1ce6c44efb6a5cc1c69c80d1e6579d8b21123213 /src/client/util/RichTextSchema.tsx
parentccd39c9a53ebf9aea84fcdcba6050145add4526f (diff)
fixed up text toolbar a little. fixed doculink anchors on hyperlinks
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r--src/client/util/RichTextSchema.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index 2a5b348d2..ef90a7294 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -283,7 +283,7 @@ export const marks: { [index: string]: MarkSpec } = {
inclusive: false,
parseDOM: [{
tag: "a[href]", getAttrs(dom: any) {
- return { href: dom.getAttribute("href"), location: dom.getAttribute("location"), title: dom.getAttribute("title") };
+ return { href: dom.getAttribute("href"), location: dom.getAttribute("location"), title: dom.getAttribute("title"), targetId: dom.getAttribute("id") };
}
}],
toDOM(node: any) {