From a734c38aa317b8ca9bf2b19853115872824f2b97 Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Mon, 9 Sep 2024 00:39:24 -0400 Subject: c --- src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx | 6 ++++-- src/client/views/nodes/formattedText/FormattedTextBox.tsx | 5 +---- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx index 07d3c3e9c..01d5bc83b 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx @@ -1772,7 +1772,8 @@ export class TemplateLayouts { opts: { backgroundColor: 'transparent', color: 'white', - contentXCentering: 'h-center' + contentXCentering: 'h-center', + fontTransform: 'uppercase' } }, { tl: [-.65, 0], @@ -1783,7 +1784,8 @@ export class TemplateLayouts { opts: { backgroundColor: 'transparent', color: 'white', - contentXCentering: 'h-center' + contentXCentering: 'h-center', + fontTransform: 'uppercase' } }, { tl: [-.83, .2], diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 5095da1c4..3b21df2ed 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1425,7 +1425,6 @@ 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) { @@ -1521,9 +1520,7 @@ 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. -- cgit v1.2.3-70-g09d2