mailui.addEventListener('editor:ready', function () {
// Perform your actions
});
mailui.addEventListener('design:loaded', function(data) {
// Design is loaded
var json = data.json; // design json
});
Property | Description | Type | Default |
---|---|---|---|
json | This is the JSON of the design | JSON |
mailui.addEventListener('design:updated', function(data) {
// Design is updated by the user
var type = data.type; // BODY, SECTION, ROW, COLUMN, ELEMENT
var changes = data.changes;
// Perform your actions
});
Property | Description | Type | Default |
---|---|---|---|
type | The type specifies what kind of data has changed.d | BODY SECTION ROW COLUMN ELEMENT | |
changes | The changes object contains the required properties: path, elementType, and data. It may also include additional optional properties. | object |