diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-02 14:36:24 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-02 14:36:24 -0400 |
| commit | 21dae64ec5a1305cdd6865481f705332b8238190 (patch) | |
| tree | dba64c518003ceed4873ada378eabb399e7244f8 | |
| parent | dfdebd42038ec750a23cf4b69ba5f652e9599f6f (diff) | |
enabled annotations with hypothes.is
| -rw-r--r-- | deploy/index.html | 1 | ||||
| -rw-r--r-- | src/client/views/nodes/WebBox.tsx | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/deploy/index.html b/deploy/index.html index 532b995f8..be0658da2 100644 --- a/deploy/index.html +++ b/deploy/index.html @@ -9,6 +9,7 @@ </head> <body> + <script src="https://hypothes.is/embed.js" async></script> <div id="root"></div> <script src="/bundle.js"></script> </body> diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index a91d4dfd9..c4ab3c9e2 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -411,9 +411,9 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps, WebDocum view = <span className="webBox-htmlSpan" dangerouslySetInnerHTML={{ __html: field.html }} />; } else if (field instanceof WebField) { const url = this.layoutDoc.UseCors ? Utils.CorsProxy(field.url.href) : field.url.href; - view = <iframe className="webBox-iframe" ref={this._iframeRef} src={url} onLoad={this.iframeLoaded} />; + view = <iframe className="webBox-iframe" enable-annotation={true} ref={this._iframeRef} src={url} onLoad={this.iframeLoaded} />; } else { - view = <iframe className="webBox-iframe" ref={this._iframeRef} src={"https://crossorigin.me/https://cs.brown.edu"} />; + view = <iframe className="webBox-iframe" enable-annotation={true} ref={this._iframeRef} src={"https://crossorigin.me/https://cs.brown.edu"} />; } return view; } |
