Plain Text
. Here's how you can export the design's plain text.mailui.exportPlainText(function (data) {
const json = data.json;
const text = data.text;
console.log(json, text);
});
mailui.exportPlainText(function (data) {
const json = data.json;
const text = data.text;
console.log(json, text);
},
{
mergeTags: {
first_name: "John",
last_name: "Author",
}
});
Property | Description | Type |
---|---|---|
json | This is the JSON of the design | JSON |
text | This is the full plain text of the design | string |
Property | Required | Description | Type | Default |
---|---|---|---|---|
mergeTags | No | mergeTags allows dynamic content to be injected based on specified variables or data tags within the project.{ mergeTags: { first_name: "John", last_name: "Author", } } | Object | |
displayConditions | No | displayCondition allows you to set rules for when and how certain elements or content are displayed, based on conditions like user behavior.{ displayConditions: { ismen: true, iswomen: false, ischild: false, } } | Object |