diff options
author | bob <bcz@cs.brown.edu> | 2019-08-22 11:07:11 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-08-22 11:07:11 -0400 |
commit | 8cffe031fe364e19897cfb638cffa9e4056c4343 (patch) | |
tree | a431bdccfe90e4a7e67fcadc0ddc13bbd477b607 /src/client/util/DocumentManager.ts | |
parent | 6927418364d58c2aaba1b25f1d11537dd510535c (diff) |
fixed textheight with titles. fixed marquee with floating docs. other tweaks.
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r-- | src/client/util/DocumentManager.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts index 7f526b247..124faf266 100644 --- a/src/client/util/DocumentManager.ts +++ b/src/client/util/DocumentManager.ts @@ -9,6 +9,7 @@ import { CollectionView } from '../views/collections/CollectionView'; import { DocumentView } from '../views/nodes/DocumentView'; import { LinkManager } from './LinkManager'; import { undoBatch, UndoManager } from './UndoManager'; +import { Scripting } from './Scripting'; export class DocumentManager { @@ -202,4 +203,5 @@ export class DocumentManager { return 1; } } -}
\ No newline at end of file +} +Scripting.addGlobal(function focus(doc: any) { DocumentManager.Instance.getDocumentViews(Doc.GetProto(doc)).map(view => view.props.focus(doc, true)) })
\ No newline at end of file |