aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-11-08 12:58:15 -0500
committerbobzel <zzzman@gmail.com>2023-11-08 12:58:15 -0500
commit601cb81824f99302eb4e4287304db33032f2aa0b (patch)
tree912ae4e1361f5224b9fec3650bb778b16d178512 /src
parent216385c7e84febce8988ef1390845b0c661fb04f (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/formattedText/marks_rts.ts8
-rw-r--r--src/client/views/nodes/formattedText/nodes_rts.ts1
2 files changed, 2 insertions, 7 deletions
diff --git a/src/client/views/nodes/formattedText/marks_rts.ts b/src/client/views/nodes/formattedText/marks_rts.ts
index c565c4294..4faef26e2 100644
--- a/src/client/views/nodes/formattedText/marks_rts.ts
+++ b/src/client/views/nodes/formattedText/marks_rts.ts
@@ -28,7 +28,6 @@ export const marks: { [index: string]: MarkSpec } = {
autoLinkAnchor: {
attrs: {
allAnchors: { default: [] as { href: string; title: string; anchorId: string }[] },
- location: { default: null },
title: { default: null },
},
inclusive: false,
@@ -37,7 +36,6 @@ export const marks: { [index: string]: MarkSpec } = {
tag: 'a[href]',
getAttrs(dom: any) {
return {
- location: dom.getAttribute('location'),
title: dom.getAttribute('title'),
};
},
@@ -46,7 +44,7 @@ export const marks: { [index: string]: MarkSpec } = {
toDOM(node: any) {
const targethrefs = node.attrs.allAnchors.reduce((p: string, item: { href: string; title: string; anchorId: string }) => (p ? p + ' ' + item.href : item.href), '');
const anchorids = node.attrs.allAnchors.reduce((p: string, item: { href: string; title: string; anchorId: string }) => (p ? p + ' ' + item.anchorId : item.anchorId), '');
- return ['a', { class: anchorids, 'data-targethrefs': targethrefs, /*'data-noPreview': 'true', */ 'data-linkdoc': node.attrs.linkDoc, title: node.attrs.title, location: node.attrs.location, style: `background: lightBlue` }, 0];
+ return ['a', { class: anchorids, 'data-targethrefs': targethrefs, /*'data-noPreview': 'true', */ 'data-linkdoc': node.attrs.linkDoc, title: node.attrs.title, style: `background: lightBlue` }, 0];
},
},
noAutoLinkAnchor: {
@@ -73,7 +71,6 @@ export const marks: { [index: string]: MarkSpec } = {
linkAnchor: {
attrs: {
allAnchors: { default: [] as { href: string; title: string; anchorId: string }[] },
- location: { default: null },
title: { default: null },
noPreview: { default: false },
docref: { default: false }, // flags whether the linked text comes from a document within Dash. If so, an attribution label is appended after the text
@@ -84,7 +81,6 @@ export const marks: { [index: string]: MarkSpec } = {
tag: 'a[href]',
getAttrs(dom: any) {
return {
- location: dom.getAttribute('location'),
title: dom.getAttribute('title'),
noPreview: dom.getAttribute('noPreview'),
};
@@ -108,7 +104,7 @@ export const marks: { [index: string]: MarkSpec } = {
node.attrs.title,
],
]
- : ['a', { class: anchorids, 'data-targethrefs': targethrefs, title: node.attrs.title, 'data-noPreview': node.attrs.noPreview, location: node.attrs.location, style: `text-decoration: underline; cursor: default` }, 0];
+ : ['a', { class: anchorids, 'data-targethrefs': targethrefs, title: node.attrs.title, 'data-noPreview': node.attrs.noPreview, style: `text-decoration: underline; cursor: default` }, 0];
},
},
diff --git a/src/client/views/nodes/formattedText/nodes_rts.ts b/src/client/views/nodes/formattedText/nodes_rts.ts
index f27fb18e2..4cd2cee52 100644
--- a/src/client/views/nodes/formattedText/nodes_rts.ts
+++ b/src/client/views/nodes/formattedText/nodes_rts.ts
@@ -212,7 +212,6 @@ export const nodes: { [index: string]: NodeSpec } = {
alt: { default: null },
title: { default: null },
float: { default: 'left' },
- location: { default: 'add:right' },
docId: { default: '' },
},
group: 'inline',