aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-04 23:45:01 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-04 23:45:01 -0400
commitd611773fc805082a935cae49723d516ce66e1a14 (patch)
tree88f7478e5d9dcb80ef339ffb04ca716b7284f4b2 /src/client/views/nodes/FormattedTextBox.tsx
parentdcaad9277d2b25e1707964c442c4d19aae59d533 (diff)
more pdf cleanup. fix to mix-multiply-mode for better highlighters/opacity. small text box fixes.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index 05904e1e7..2b6a86aed 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -291,7 +291,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
if (de.data.urlField && link) {
let url: string = de.data.urlField.url.href;
let model: NodeType = [".mov", ".mp4"].includes(url) ? schema.nodes.video : schema.nodes.image;
- node = model.create({ src: url, docid: link[Id] })
+ node = model.create({ src: url, docid: link[Id] });
} else {
node = schema.nodes.dashDoc.create({
width: target[WidthSym](), height: target[HeightSym](),
@@ -798,7 +798,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
this._editorView!.focus();
}
}
- }
+ };
}
onPointerUp = (e: React.PointerEvent): void => {
@@ -807,9 +807,10 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
e.stopPropagation();
}
}
-
+ static InputBoxOverlay: any = null;
@action
onFocused = (e: React.FocusEvent): void => {
+ FormattedTextBox.InputBoxOverlay = this;
document.removeEventListener("keypress", this.recordKeyHandler);
document.addEventListener("keypress", this.recordKeyHandler);
this.tryUpdateHeight();