aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.