diff options
author | bobzel <zzzman@gmail.com> | 2020-08-08 20:56:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-08 20:56:30 -0400 |
commit | 9f4a7ec5f79d9dec3a0ffb0b633197216cbefec8 (patch) | |
tree | 4b30cf8edfee0b2f315353329fde65b0b4585ae0 /src/client/documents/Documents.ts | |
parent | 47e3170534393ab9e4140c18b32110f83753d817 (diff) | |
parent | 1733759b776f0596c3a8561d2c735a4b7c7d54d3 (diff) |
Merge pull request #517 from browngraphicslab/hypothesis_annotation
Hypothesis annotation
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index f902da0a2..070068401 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -722,7 +722,7 @@ export namespace Docs { } export function WebDocument(url: string, options: DocumentOptions = {}) { - return InstanceFromProto(Prototypes.get(DocumentType.WEB), url ? new WebField(new URL(url)) : undefined, { _fitWidth: true, _chromeStatus: url ? "disabled" : "enabled", isAnnotating: true, _lockedTransform: true, ...options }); + return InstanceFromProto(Prototypes.get(DocumentType.WEB), url ? new WebField(new URL(url)) : undefined, { _fitWidth: true, _chromeStatus: url ? "disabled" : "enabled", isAnnotating: false, _lockedTransform: true, ...options }); } export function HtmlDocument(html: string, options: DocumentOptions = {}) { @@ -943,7 +943,6 @@ export namespace DocUtils { return linkDoc; } - export function DocumentFromField(target: Doc, fieldKey: string, proto?: Doc, options?: DocumentOptions): Doc | undefined { let created: Doc | undefined; let layout: ((fieldKey: string) => string) | undefined; |