This PR introduces the ability to enable and disable the auto-open: attaching listeners to anchors element.
Up until now this mechanism was handled automatically and not configurable. This is a requirement for the upcoming feature on the Chrome extension to automatically open PDF documents on a given tab
Additionally, the way documents are loaded is improved: instead of proxying the specified document to the server to bypass possible CORS, we attempt to fetch the document locally, and only use the CORS proxy as a fallback.
On top of drastically speeding up loading documents, this also paves the way for programmatically interacting with the editor.
Changes
Surface the "auto open" configuration
Implement iframe communication (similarly to React-embed)
Background
This PR introduces the ability to enable and disable the
auto-open
: attaching listeners to anchors element.Up until now this mechanism was handled automatically and not configurable. This is a requirement for the upcoming feature on the Chrome extension to automatically open PDF documents on a given tab
Additionally, the way documents are loaded is improved: instead of proxying the specified document to the server to bypass possible CORS, we attempt to fetch the document locally, and only use the CORS proxy as a fallback.
On top of drastically speeding up loading documents, this also paves the way for programmatically interacting with the editor.
Changes