aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-09-09 00:39:24 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-09-09 00:39:24 -0400
commita734c38aa317b8ca9bf2b19853115872824f2b97 (patch)
treef993bf714d3ba03fdb9c1d48ac14107b20a777b4 /src
parente39a39cf0a1ea79f6ac2a25ee83533cf2f177290 (diff)
c
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx6
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx5
2 files changed, 5 insertions, 6 deletions
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<FormattedTextB
_didScroll = false;
_scrollStopper: undefined | (() => 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<FormattedTextB
pdfAnchorId && this.addPdfReference(pdfAnchorId);
}
if (this._props.autoFocus) setTimeout(() => 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.