diff options
author | bobzel <zzzman@gmail.com> | 2024-10-10 18:58:39 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-10 18:58:39 -0400 |
commit | 5752dff8ff7b1b2858542feec0b1bb037461bf1a (patch) | |
tree | 04080d4a596b0e5199b5ec95ab625fbb590f2a75 /src/client/documents/Documents.ts | |
parent | 36735ff00a55ae587af5f69eef495533a1f35393 (diff) | |
parent | d347fc59feefd91a796012892da57511787bb6d0 (diff) |
Merge branch 'master' into nathan-starter
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 0a7047128..951632d71 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -817,6 +817,11 @@ export namespace Docs { export function RTFDocument(field: RichTextField, options: DocumentOptions = {}, fieldKey: string = 'text') { return InstanceFromProto(Prototypes.get(DocumentType.RTF), field, options, undefined, fieldKey); } + + export function MessageDocument(field: string, options: DocumentOptions = {}, fieldKey: string = 'data') { + return InstanceFromProto(Prototypes.get(DocumentType.MESSAGE), field, options, undefined, fieldKey); + } + export function TextDocument(text: string, options: DocumentOptions = {}, fieldKey: string = 'text') { const rtf = { doc: { |