diff options
author | bobzel <zzzman@gmail.com> | 2020-09-14 17:42:57 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-14 17:42:57 -0400 |
commit | 1af6500a4b87fa25506a9b51d8fa7dbc0d68878b (patch) | |
tree | 5c541be0995eff51739c0a4d67f244cd91435184 /src/client/documents/Documents.ts | |
parent | 962badfb33c5011e9288966e5db2f8a222939e3a (diff) |
made custom header default to author/creationDate
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 0ac153d74..d22e20101 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -673,6 +673,9 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.COLOR), "", options); } + export function RTFDocument(field: RichTextField, options: DocumentOptions = {}, fieldKey: string = "text") { + return InstanceFromProto(Prototypes.get(DocumentType.RTF), field, options, undefined, fieldKey); + } export function TextDocument(text: string, options: DocumentOptions = {}, fieldKey: string = "text") { const rtf = { doc: { |