question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to export the HTML

See original GitHub issue

Hi Artf,

I seem to be bothering you on all fronts. Sorry.

I want to be able to get the converted mjml (HTML). What command should I use to get this?

If i open the “view code” dialog if gives the error: “Line 22 (mj-body) — Element mj-body doesn’t exist or is not registered” . The mjml side all looks fine but nothing renders on the HTML side.

It also throws a js error: grapes.min.js:2 Uncaught TypeError: Cannot read property 'split' of undefined at Xs (grapes.min.js:2) at Pa.splitLines (grapes.min.js:2) at Pa.<anonymous> (grapes.min.js:2) at Pa.setValue (grapes.min.js:2) at Ho.setValue (grapes.min.js:2) at n.setContent (grapes.min.js:2) at n.run (grapesjs-mjml.min.js:108) at n.updateActive (grapes.min.js:2) at y (grapes.min.js:2) at v (grapes.min.js:2)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Chronis77commented, Jul 7, 2017

If you include the tags:

<mjml> <mj-body>

into your code it does not work. Your code appends those tags already, so you end up getting something like:

<mjml> <mj-body> <mjml> <mj-body>

which the converter then fails on.

0reactions
artfcommented, Jul 6, 2017

@Chronis77 good to know, but I didn’t get if the error is caused by your config with preMjml/postMjml or something else

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export to HTML in InDesign - Adobe Support
Choose File > Export and select HTML from the Save As Type list. Specify the name and location of the HTML document, and...
Read more >
HTML Export
To export HTML, switch the format option to HTML. The preview will switch from text to an HTML display. Using the Generated HTML...
Read more >
Export HTML - Nicepage Documentation
Open the Publish & Export dialog. Enter the Folder Name. Select the Path if needed. Click the Export HTML button. Export As ZIP....
Read more >
Exporting to HTML - TIBCO Product Documentation
Select File > Export > To HTML.... Response: The Export to HTML dialog is opened. · Adjust to your preferred settings in the...
Read more >
Is there a way to export CSS and HTML code from a single ...
In Chrome, Click File --> Save Page AS (command + s on mac or control + s on pc).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found