diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-02 01:31:03 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-02 01:31:03 -0400 |
commit | eebe58b47acfe3b13c22407b98763cdbd6e1eb58 (patch) | |
tree | e2e6d0e9ffd6b74c9b0e70ba190a33cf3cbc7732 /src/new_fields/Doc.ts | |
parent | be3719bbbede85b4dd099f436b4f7d3bade157cb (diff) |
"Fixed" proto access issue
This is actually cause by import order, which I didn't really fix yet but which needs to be fixed
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 6162b3c76..8dd293f2d 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -9,7 +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 { return (typeof field === "string") @@ -183,7 +183,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 = Docs.TextDocument({ width: 100, height: 30, borderRounding: -1 }); + let linkDoc = new Doc; linkDoc.title = "-link name-"; linkDoc.linkDescription = ""; linkDoc.linkTags = "Default"; |