aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Document.ts
diff options
context:
space:
mode:
authormadelinegr <laura_wilson@brown.edu>2019-02-27 00:56:43 -0500
committermadelinegr <laura_wilson@brown.edu>2019-02-27 00:56:43 -0500
commitf7829f425e1ccbc6baa2059c91fa914d21963440 (patch)
treed3ac69e2ac34eb132a4af987545eaf2e209605fe /src/fields/Document.ts
parent6d96342814874fe5ceec7264887a37e8aa1fab20 (diff)
parent7d7d9349a9c2c7136eccf8d08af506d00f2bd2fd (diff)
merged
Diffstat (limited to 'src/fields/Document.ts')
-rw-r--r--src/fields/Document.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts
index 6193ea56c..5b91de6ed 100644
--- a/src/fields/Document.ts
+++ b/src/fields/Document.ts
@@ -8,6 +8,7 @@ import { ListField } from "./ListField";
import { Server } from "../client/Server";
import { Types } from "../server/Message";
import { UndoManager } from "../client/util/UndoManager";
+import { HtmlField } from "./HtmlField";
export class Document extends Field {
public fields: ObservableMap<string, { key: Key, field: Field }> = new ObservableMap();
@@ -125,6 +126,10 @@ export class Document extends Field {
return vval;
}
+ GetHtml(key: Key, defaultVal: string): string {
+ return this.GetData(key, HtmlField, defaultVal);
+ }
+
GetNumber(key: Key, defaultVal: number): number {
return this.GetData(key, NumberField, defaultVal);
}