HTML and CSS Reference
Step 7: Implement the Save and Preview buttons
To implement the Save and Preview buttons, add the code from the next listing just after
the event listener you added to the import form in the previous section.
Listing 3.16. app.js—Saving files using the File Writer API