Package Exports
- mailchimpify
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mailchimpify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Mailchimpify
Mailchimp has custom mc:edit
attributes that allows your custom html to be edited through their design view. This allows for non-developers, to move things around without any help.
When you're using React or a module that uses it as dependency it (ie: react-html-email), it will error since mc:edit
isn't valid. This replaces any data-mc-edit
string with Mailchimp's mc:edit
.
Usage
var mailchimpify = require('mailchimpify');
var div = '<div data-mc-edit="content">some text</div>';
mailchimpify(div); // <div mc:edit="content">some text</div>;