diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-16 18:37:07 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-16 18:37:07 -0400 |
commit | 430fd8c0a3dcaf92f599bf6c8b8032db8774bae7 (patch) | |
tree | a9820863fd4917f2046c116c0cbfd948ae6aa897 /src/client/util/RichTextSchema.tsx | |
parent | 31d2d8e058e0559707da352defd02585a3963353 (diff) | |
parent | 2e9adac91d724233787a7837e57955cc811a852a (diff) |
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index e0ff3074b..269de0f42 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -215,12 +215,13 @@ export const marks: { [index: string]: MarkSpec } = { link: { attrs: { href: {}, + location: { default: null }, title: { default: null } }, inclusive: false, parseDOM: [{ tag: "a[href]", getAttrs(dom: any) { - return { href: dom.getAttribute("href"), title: dom.getAttribute("title") }; + return { href: dom.getAttribute("href"), location: dom.getAttribute("location"), title: dom.getAttribute("title") }; } }], toDOM(node: any) { return ["a", node.attrs, 0]; } |