Add frontend file structure docs and some related cleanup

This commit is contained in:
Keavon Chambers
2022-05-23 19:24:31 -07:00
parent ab77105ffb
commit bec7a4c109
21 changed files with 168 additions and 145 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export function createPortfolioState(editor: Editor) {
state.activeDocumentIndex = activeId;
});
editor.subscriptions.subscribeJsMessage(TriggerFileUpload, async () => {
const extension = editor.raw.file_save_suffix();
const extension = editor.instance.file_save_suffix();
const data = await upload(extension);
editor.instance.open_document_file(data.filename, data.content);
});