aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/RichTextSchema.tsx
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2020-01-09 15:52:05 -0500
committerFawn <fangrui_tong@brown.edu>2020-01-09 15:52:05 -0500
commit9a8d2a903b10568686cc66c849fba21b1ab75be2 (patch)
treeea0bf48e4f47c72f9eeab3cbd00a5f1494abbb34 /src/client/util/RichTextSchema.tsx
parente0a8d325d601d305a166c1683dccfcc67e91fe95 (diff)
parent540bda7295f6ee7c2eed848598de6f5df74b2723 (diff)
pull and merge with master
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) {