Full Tag Reference
This page provides a comprehensive reference for all the special HTML attributes used by Modular Mail to define editable content within a module.
Editable Content Attributes
Section titled “Editable Content Attributes”These attributes are used to define which parts of a module’s content can be edited.
Attribute | Description | Usage |
---|---|---|
mm-editable | Makes an HTML element’s content or attributes editable. | <p mm-editable>Some text.</p> |
data-mm-label | Provides a human-readable name for the editable field in the editor UI. | <h1 mm-editable data-mm-label="Main Headline"> |
data-mm-type | Optional. Specifies the type of field to be used in the editor UI. If omitted, the type defaults to “text”. | <td mm-editable data-mm-type="textarea"> |
Supported data-mm-type
Values
Section titled “Supported data-mm-type Values”text
: A single line of plain text.textarea
: A block of text.