the web-editor is setup as the main demo component and as such to simplify the demo's, all options within its initmod are optional
| name | description |
|---|---|
| ext | the default loader helper |
| $ | the dom helper module |
| menu | menumod | either the main menu or the menumod module |
| complete |
an object with keys
load complete.load, this is called when a file is loaded, the callback is called with parameters file an object representing the file blob a blob, the file data |
| source | a function called when save is called from outside the file-mod itself, it returns a blob of the current file |
| focus | when menu's close, it is sometimes useful for user experience to refocus the active work area, this function is called when that needs to happen |
| log | a reference to global log-mod, in case there is anything that needs to be communicated back to the user, such as file not found, no current file |