openEditor
Function of @v12-engine/editor
ts
export declare function openEditor(options: OpenEditorOptions): OpenedEditor;Opens the map editor of a game on the page: its view, tools and panels, with the map being edited played over it (Play here) as launch plays a map.
openEditor( target: '#editor', game )
The game's view is fetched before the editor is drawn (loadGame). Maps are kept in the project's files where the page's dev server has the editor's plugin (editorFiles), in the browser otherwise. The editor's code is loaded as it opens, not with the page: its element fills a moment after, and onLoaded says when the editor is there