diff options
author | aaravkumar <aarav.kumar1510@gmail.com> | 2025-03-07 00:13:01 -0500 |
---|---|---|
committer | aaravkumar <aarav.kumar1510@gmail.com> | 2025-03-07 00:13:01 -0500 |
commit | 696ae072b1f00d616450d76bc016aebcc1c102fc (patch) | |
tree | 97010a729b063ffe39b3b17438b5bf99d5859100 /src/client/documents/Documents.ts | |
parent | 1ab6f6c87b746e0c2898694216db50d5faadf7f5 (diff) |
attempted adding formatting
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index fe6e6b22d..d21fa04d4 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -919,9 +919,15 @@ export namespace Docs { // AARAV ADD // export function DailyJournalDocument(text: string | RichTextField, options: DocumentOptions = {}, fieldKey: string = 'text') { + 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 + }; + return InstanceFromProto( Prototypes.get(DocumentType.JOURNAL), - typeof text === 'string' ? RichTextField.textToRtf(text) : text, + typeof text === 'string' ? RichTextField.textToRtfFormatting(text, undefined, undefined, styles) : text, { title: new Date().toLocaleDateString(undefined, { weekday: 'long', |