aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/RichTextSchema.tsx
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-06-25 14:00:42 -0400
committerab <abdullah_ahmed@brown.edu>2019-06-25 14:00:42 -0400
commitc2c04325e0f29c01cd5ab0617d17a62183a53611 (patch)
tree3ec63ea0ea6ce159ec37ea749f3068eb011009ae /src/client/util/RichTextSchema.tsx
parent4270bd26e1b28f429ca11e43504b1a39a0a77baa (diff)
fixed most stuff, still the zooming and focus bugs
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r--src/client/util/RichTextSchema.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index 936dcbfd6..63c879d67 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -509,6 +509,7 @@ export class SummarizedView {
let newSelection = TextSelection.create(view.state.doc, y + 1, y + 1 + length);
// update attrs of node
node.attrs.text = newSelection.content();
+ node.attrs.textslice = newSelection.content().toJSON();
view.dispatch(view.state.tr.setSelection(newSelection).deleteSelection(view.state, () => { }));
self._collapsed.textContent = "㊉";
} else {