aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-05-02 16:58:14 -0400
committerbob <bcz@cs.brown.edu>2019-05-02 16:58:14 -0400
commitac9b42dba420139c0a7fad5685425b3cf9c1570e (patch)
tree1d8689365bb8971f1dfc026f92b470c6673421e5 /src/new_fields/Doc.ts
parenta78282cdf7fbb99386484640e1fb89d4b9b0cbee (diff)
clean up
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index b37b52ea0..978aacaac 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -9,6 +9,7 @@ import { listSpec } from "./Schema";
import { List } from "./List";
import { ObjectField, Parent, OnUpdate } from "./ObjectField";
import { RefField, FieldId, Id, HandleUpdate } from "./RefField";
+import { Docs } from "../client/documents/Documents";
// import { Docs } from "../client/documents/Documents";
export function IsField(field: any): field is Field {
@@ -183,8 +184,8 @@ export namespace Doc {
export function MakeLink(source: Doc, target: Doc) {
UndoManager.RunInBatch(() => {
- // let linkDoc = Docs.TextDocument({ width: 100, height: 30, borderRounding: -1 });
- let linkDoc = new Doc;
+ let linkDoc = Docs.TextDocument({ width: 100, height: 30, borderRounding: -1 });
+ //let linkDoc = new Doc;
linkDoc.title = "-link name-";
linkDoc.linkDescription = "";
linkDoc.linkTags = "Default";