aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes
diff options
context:
space:
mode:
authorkimdahey <claire_kim1@brown.edu>2019-09-12 15:53:27 -0400
committerkimdahey <claire_kim1@brown.edu>2019-09-12 15:53:27 -0400
commitbbdd26d89a231922cebd1560761ffffba97b9a40 (patch)
tree9b07abbe83070cc8d40d7e8158bfe1818d1fd130 /src/client/views/nodes
parent66d510b95c7e70049df6208dbe91ff4600058b27 (diff)
updated to master, will check self healing links now
Diffstat (limited to 'src/client/views/nodes')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index 985075a52..ede0facd8 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -138,6 +138,10 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
document.addEventListener("paste", this.paste);
+ this.props.Document.guid = undefined;
+ this.props.Document.linkHref = undefined;
+
+ console.log('formattextbox', this.props.Document[Id]);
reaction(
() => StrCast(this.props.Document.guid),
async (guid) => {
@@ -158,8 +162,8 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
editor.focus();
editor.dispatch(tr.scrollIntoView());
editor.dispatch(tr.scrollIntoView()); // bcz: sometimes selection doesn't fully scroll into view on smaller text boxes <5 lines visibility -- hopefully avoidable by ppl just not using small boxes...?
- this.props.Document.guid = "";
- this.props.Document.linkHref = "";
+ this.props.Document.guid = undefined;
+ this.props.Document.linkHref = undefined;
}
}