aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/RichTextSchema.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-07 21:48:01 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-07 21:48:01 -0400
commitd970ad82bc7b0b1c8dae27b5f55ad78bddb0f7cd (patch)
tree321c2814935b8491f9807fdce833cd84b4667368 /src/client/util/RichTextSchema.tsx
parent86139163d9424a0eb95eacd5cdfd608048c0a4bd (diff)
added commeting with (( and ##
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r--src/client/util/RichTextSchema.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index 8d0f59ddc..047706368 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -739,7 +739,8 @@ export class DashDocView {
this._dashSpan.style.position = "absolute";
this._dashSpan.style.display = "inline-block";
let removeDoc = () => {
- let ns = new NodeSelection(view.state.doc.resolve(getPos()));
+ let pos = getPos();
+ let ns = new NodeSelection(view.state.doc.resolve(pos));
view.dispatch(view.state.tr.setSelection(ns).deleteSelection());
return true;
};