aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/RichTextSchema.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-09-06 09:18:11 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-09-06 09:18:11 -0400
commit95f773b56b8ed4fa95b1fd308c19baee1744275a (patch)
tree7ca0046e292e8a7b48bbde1474e9c76888234bf4 /src/client/util/RichTextSchema.tsx
parent760465b0723e2b21a07269afe61a0207a0bc5580 (diff)
added note types. fixed user_mark
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r--src/client/util/RichTextSchema.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index 31a65dd3a..675c1d387 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -381,7 +381,6 @@ export const marks: { [index: string]: MarkSpec } = {
modified: { default: "when?" }
},
group: "inline",
- inclusive: false,
toDOM(node: any) {
let hideUsers = node.attrs.hide_users;
let hidden = hideUsers.indexOf(node.attrs.userid) !== -1 || (hideUsers.length === 0 && node.attrs.userid !== Doc.CurrentUserEmail);
@@ -759,7 +758,7 @@ export class SummarizedView {
this._collapsed.onpointerdown = (e: any) => {
const visible = !node.attrs.visibility;
const attrs = { ...node.attrs, visibility: visible };
- let textSelection = TextSelection.create(view.state.doc, getPos() + 1, getPos() + 1);
+ let textSelection = TextSelection.create(view.state.doc, getPos() + 1);
if (!visible) { // update summarized text and save in attrs
textSelection = this.updateSummarizedText(getPos() + 1);
attrs.text = textSelection.content();