Skip to content

Console.error while i import a Mosaico JSON with the "importJSON" method #279

Open
@korosaitama

Description

@korosaitama

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:

mosaico importjson 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!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions