diff options
author | bob <bcz@cs.brown.edu> | 2019-11-12 15:07:03 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-11-12 15:07:03 -0500 |
commit | d7150995d62c498ab8435de986b90d98bdca020c (patch) | |
tree | 572ef6b6967615cf3ec0d3722b3a027283b21731 /src/client/util/RichTextSchema.tsx | |
parent | d220b23867050fb6565fe639c3be28080f589aa2 (diff) |
a bunch of cleanup and bug fixes to text links and doculink buttons
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index a5e0ca720..76b8aeaa1 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -305,8 +305,8 @@ export const marks: { [index: string]: MarkSpec } = { }], toDOM(node: any) { return node.attrs.docref && node.attrs.title ? - ["div", ["span", `"`], ["span", 0], ["span", `"`], ["br"], ["a", { ...node.attrs, class: "prosemirror-attribution" }, node.attrs.title], ["br"]] : - ["a", { ...node.attrs }, 0]; + ["div", ["span", `"`], ["span", 0], ["span", `"`], ["br"], ["a", { ...node.attrs, class: "prosemirror-attribution", title: `${node.attrs.title}` }, node.attrs.title], ["br"]] : + ["a", { ...node.attrs, title: `${node.attrs.title}` }, 0]; } }, |