diff options
author | bobzel <zzzman@gmail.com> | 2022-03-04 15:19:09 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-03-04 15:19:09 -0500 |
commit | ff2602bb598b6e82330a9a0b2453e44d70c94c39 (patch) | |
tree | 37a0106c1c23c1bd1c0509cc1e2ebe4e9f703b2b /src/fields/Doc.ts | |
parent | c015dc3b76ec30e9d7057ee558787e59033af270 (diff) |
removed pseudo Doc type system. playing with hot reloading.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 63c67aeb0..9efa092a0 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -25,6 +25,7 @@ import { Cast, FieldValue, NumCast, StrCast, ToConstructor } from "./Types"; import { AudioField, ImageField, MapField, PdfField, VideoField, WebField } from "./URLField"; import { deleteProperty, GetEffectiveAcl, getField, getter, inheritParentAcls, makeEditable, makeReadOnly, normalizeEmail, setter, SharingPermissions, updateFunction } from "./util"; import JSZip = require("jszip"); +import { InkField } from "./InkField"; export namespace Field { export function toKeyValueString(doc: Doc, key: string): string { @@ -1391,6 +1392,8 @@ export namespace Doc { } +Scripting.addGlobal(ObjectField); +Scripting.addGlobal("InkField", InkField); Scripting.addGlobal(function idToDoc(id: string): any { return DocServer.GetCachedRefField(id); }); Scripting.addGlobal(function renameAlias(doc: any) { return StrCast(Doc.GetProto(doc).title).replace(/\([0-9]*\)/, "") + `(${doc.aliasNumber})`; }); Scripting.addGlobal(function getProto(doc: any) { return Doc.GetProto(doc); }); |