diff options
author | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-07-23 14:54:55 -0700 |
---|---|---|
committer | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-07-23 14:54:55 -0700 |
commit | a8ccd648f811a5049bda15d5ace9d44ef570b418 (patch) | |
tree | c8b6113ae66ce35a7c369004a22111d0368f8c8e /src/client/views/nodes/DocumentView.tsx | |
parent | efb3fa5fa8081256cfae6ae6cb75b010c560a5e5 (diff) |
change onClick and link kind of works
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 748938699..641dd782b 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -100,6 +100,7 @@ export interface DocumentViewProps { layoutKey?: string; radialMenu?: String[]; display?: string; + scriptContext?: any; } @observer @@ -322,6 +323,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu const func = () => this.onClickHandler.script.run({ this: this.layoutDoc, self: this.rootDoc, + scriptContext: this.props.scriptContext, thisContainer: this.props.ContainingCollectionDoc, shiftKey: e.shiftKey }, console.log); if (this.props.Document !== Doc.UserDoc()["dockedBtn-undo"] && this.props.Document !== Doc.UserDoc()["dockedBtn-redo"]) { |