Blank design
The editorBlank design
Start from an empty canvas.
The editor opens blank by default. Seed a specific starting point with createEmptyDesign() or a template, and load it in onReady.
Clear the canvas from code
editor.loadBlank() removes every row from the open design and keeps everything else: its id, title, font, colors and width. Pass backgroundColor or contentWidth to change those at the same time. Give contentWidth as a number of pixels.
editor.loadBlank({ backgroundColor: "#f4f4f5", contentWidth: 600 });The rows are replaced at once, so call saveDesign first if you need the current content.
loadBlank or createEmptyDesign
createEmptyDesign() from email-craft-sdk builds a new design object on your server, with a fresh id, the title "Untitled design", display_mode: "email" and no rows. Store it, then open it with loadDesign. Use loadBlank when the editor is already open and you only want an empty canvas. The fields are listed on the design object page.