@lf-certification/theia-extensions-window-event-handler
v0.0.3
Published
This extension is for receiving messages when Theia is run in an iframe.
Downloads
10
Keywords
Readme
Theia Window Event Handler
This extension is for receiving messages when Theia is run in an iframe.
Supported Events
The following events are sent by exam-ui
Open File:
document.getElementById("webide").contentWindow.postMessage([
"openFile",
{
uri: true,
file: "/path/to/file.json"
}
], "*")
Open Workspace:
document.getElementById("webide").contentWindow.postMessage([
"openFolder",
{
uri: true,
file: "/path/to/exam-dir"
}
], "*")