From e39a39cf0a1ea79f6ac2a25ee83533cf2f177290 Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Sun, 8 Sep 2024 19:43:36 -0400 Subject: c --- src/client/views/nodes/formattedText/FormattedTextBox.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/views/nodes/formattedText') diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index e091657a8..5095da1c4 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1425,6 +1425,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent void); setupEditor(config: any, fieldKey: string) { + try { const curText = Cast(this.dataDoc[this.fieldKey], RichTextField, null) || StrCast(this.dataDoc[this.fieldKey]); const rtfField = Cast((!curText && this.layoutDoc[this.fieldKey]) || this.dataDoc[fieldKey], RichTextField); if (this.ProseRef) { @@ -1520,6 +1521,9 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent this._editorView!.focus()); // not sure why setTimeout is needed but editing dashFieldView's doesn't work without it. + } catch (e) { + console.log(e); + } } // add user mark for any first character that was typed since the user mark that gets set in KeyPress won't have been called yet. @@ -2126,6 +2130,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent ); + } } -- cgit v1.2.3-70-g09d2