diff options
author | bob <bcz@cs.brown.edu> | 2019-02-04 18:10:27 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-04 18:10:27 -0500 |
commit | 00a4534c535281aaecf4b47da64f1a0770e3bf68 (patch) | |
tree | ba26deb79349ccc472da4fa9c7bc85ec36dc1250 /src/documents/Documents.ts | |
parent | e79e53d78546501fc855b76a84f000289ed7433a (diff) |
not working
Diffstat (limited to 'src/documents/Documents.ts')
-rw-r--r-- | src/documents/Documents.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/documents/Documents.ts b/src/documents/Documents.ts index 932abf7bc..29ef32966 100644 --- a/src/documents/Documents.ts +++ b/src/documents/Documents.ts @@ -9,6 +9,7 @@ import { CollectionSchemaView } from "../views/collections/CollectionSchemaView" import { ImageField } from "../fields/ImageField"; import { RichTextField } from "../fields/RichTextField"; import { ImageBox } from "../views/nodes/ImageBox"; +import { CollectionFreeFormView } from "../views/collections/CollectionFreeFormView"; interface DocumentOptions { x?: number; @@ -138,7 +139,7 @@ export namespace Documents { collectionProto.SetField(KeyStore.PanY, new NumberField(0)); collectionProto.SetField(KeyStore.Width, new NumberField(300)); collectionProto.SetField(KeyStore.Height, new NumberField(300)); - collectionProto.SetField(KeyStore.Layout, new TextField('<CollectionFreeFormView Document={Document} fieldKey={DataKey} ContainingDocumentView={ContainingDocumentView}/>')); + collectionProto.SetField(KeyStore.Layout, new TextField(CollectionFreeFormView.LayoutString())); collectionProto.SetField(KeyStore.LayoutKeys, new ListField([KeyStore.Data])); } return collectionProto; |