Build the whole editor inside options.element and return a handle to it.
Call it once per page. The parts it assembles include several that are
singletons by nature, the autosave draft, the workspace store, the command
palette on document.body, so a second mount on the same namespace would
have two editors writing over one another's saves.
Build the whole editor inside
options.elementand return a handle to it.Call it once per page. The parts it assembles include several that are singletons by nature, the autosave draft, the workspace store, the command palette on
document.body, so a second mount on the same namespace would have two editors writing over one another's saves.