@lf-certification/theia-extensions-window-event-handler

0.0.3 • Public • Published

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"
  }                                                                                                                                       
], "*")

Readme

Keywords

Package Sidebar

Install

npm i @lf-certification/theia-extensions-window-event-handler

Weekly Downloads

0

Version

0.0.3

License

none

Unpacked Size

31.6 kB

Total Files

17

Last publish

Collaborators

  • mynameisrufus
  • jkinred
  • lfcert