Quick start
Column extensions are included inStarterKit by default; no extra imports are needed.
Inserting columns programmatically
Use theinsertColumns command to add a column layout.
Building a toolbar
Here’s a complete example with a toolbar for inserting column layouts. It uses theslotBefore
prop to position the toolbar above the editor.
Column spacing
Column layouts render as email-safe tables. Space between columns is stored as thecellspacing attribute on the column layout and exported as the cellSpacing
prop on the underlying Row.
Select a 2, 3, or 4 column layout in the editor and use Column spacing in
the inspector to adjust the gap between columns.
Slash commands
The default slash commands include column layouts. Type/ and search for “columns”:
- Two Columns:
TWO_COLUMNS - Three Columns:
THREE_COLUMNS - Four Columns:
FOUR_COLUMNS
Examples
See column layouts in action with a runnable example:Column Layouts
Toolbar-driven 2/3/4 column insertion.