Email blocks

Every block of the email preset, and the page that documents it.

createEmailFeatures() holds every block below; see Presets. Each block is one of three kinds:

  • Text: you type in it, and its settings (alignment, style) are in the inspector.
  • Void: it holds no text; every field is in the inspector, and the canvas shows the block as the reader will see it.
  • Container: it holds other blocks.
BlockNodeKindPage
Paragraph, bold, italic, underline, linkp, atextBlocks
Title and section headingh1, h2textHeadings
Bulleted, numbered and badge listp with listStyleTypecontainerBadge list
HighlighthighlighttextHighlight
Fine printfine-printtextFine print
ButtonbuttonvoidButton
Key figurestatvoidKey figure
Image, with a link and a play overlayimagevoidImage options
DividerhrvoidDivider
ArticlearticlevoidArticle block
ProductproductvoidProduct block
OfferoffervoidOffer block
RatingratingtextRating block
TabletablecontainerEmail table
Columnscolumns > columncontainerColumns
Recipient's name, emailvariablevoid, inlineVariables

The removed email block editor's fifteen blocks map one for one, and this table is the migration table: its grid is columns, its heading levels 1 and 2 are h1 and h2, and a list is a run of paragraphs, as everywhere in the content editor. To convert a stored document, see email-block-editor → content-editor + createEmailFeatures.

To turn a stored email into the HTML you send, see Rendering an email.