aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/DashDocCommentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-11-04 14:34:46 -0400
committerbobzel <zzzman@gmail.com>2022-11-04 14:34:46 -0400
commit31a51e9dda07e48c88166bffbc8f1ad7166cd624 (patch)
tree848060dc1d5c358b2f5d2576e4269265a3f143fe /src/client/views/nodes/formattedText/DashDocCommentView.tsx
parentfe98c7d46df1852a74cd84dbe9ad010bfb3d5550 (diff)
more fixes to sidebar annotations of pdfs to improve link following.
Diffstat (limited to 'src/client/views/nodes/formattedText/DashDocCommentView.tsx')
-rw-r--r--src/client/views/nodes/formattedText/DashDocCommentView.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/views/nodes/formattedText/DashDocCommentView.tsx b/src/client/views/nodes/formattedText/DashDocCommentView.tsx
index 85523c176..4bff57842 100644
--- a/src/client/views/nodes/formattedText/DashDocCommentView.tsx
+++ b/src/client/views/nodes/formattedText/DashDocCommentView.tsx
@@ -36,11 +36,12 @@ export class DashDocCommentView {
(this as any).dom = this.dom;
}
- destroy() {
- // ReactDOM.unmountComponentAtNode(this.dom);
+ deselectNode() {
+ this.dom.classList.remove('ProseMirror-selectednode');
+ }
+ selectNode() {
+ this.dom.classList.add('ProseMirror-selectednode');
}
-
- selectNode() {}
}
interface IDashDocCommentViewInternal {