Open
Description
Hi!
Im trying to import an email JSON content with the method .importJSON()
of the mosaico view model (recovered by a Mosaico init custom plugin).
It works but i receive the following error:
The imported JSON is an export of a previous email.
It's something like:
// Import the email
var old_email_json = old_mail_mosaico_view_model.exportJSON();
// Save the JSON on the Database and move to a new context (like a new page)...
...
// Import the saved email
new_mosaico_view_model.importJSON(old_email_json )
I have been trying many variation of the JSON to import like:
- Import the JSON + metadata
- Import the same init's JSON (with the JSON + metadata string format)
- Import the JSON + metadata in string format
But none of them works...
What should i do?
Thanks for the help!