aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/DailyJournal.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-07 10:20:19 -0500
committerbobzel <zzzman@gmail.com>2025-03-07 10:20:19 -0500
commitccf4d9438012ed7d2e19e4a55166f1bc6ce3e952 (patch)
tree7abcd16999f6225bb5b677de89a6c94141803d3a /src/client/views/nodes/formattedText/DailyJournal.tsx
parent696ae072b1f00d616450d76bc016aebcc1c102fc (diff)
cleaned up RTF creation w/ styles. fixed scripting compile bug when unused functions were considered not found.
Diffstat (limited to 'src/client/views/nodes/formattedText/DailyJournal.tsx')
-rw-r--r--src/client/views/nodes/formattedText/DailyJournal.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/views/nodes/formattedText/DailyJournal.tsx b/src/client/views/nodes/formattedText/DailyJournal.tsx
index 42c559da4..25bb44924 100644
--- a/src/client/views/nodes/formattedText/DailyJournal.tsx
+++ b/src/client/views/nodes/formattedText/DailyJournal.tsx
@@ -56,18 +56,18 @@ export class DailyJournal extends ViewBoxAnnotatableComponent<FieldViewProps>()
console.log('Checking if dataDoc has text field...');
- const styles = {
- bold: true, // Make the journal date bold
+ const styles = {
+ bold: true, // Make the journal date bold
color: 'blue', // Set the journal date color to blue
- fontSize: 18 // Set the font size to 18px for the whole text
+ fontSize: 18, // Set the font size to 18px for the whole text
};
console.log('Setting new text field with:', initialText);
- this.dataDoc[this.fieldKey] = RichTextField.textToRtfFormatting(
+ this.dataDoc[this.fieldKey] = RichTextField.textToRtf(
initialText,
undefined, // No image DocId
- placeholderText.length, // The position for text selection
- styles // Pass the styles object here
+ styles, // Pass the styles object here
+ placeholderText.length // The position for text selection
);
console.log('Current text field:', this.dataDoc[this.fieldKey]);