Issue #557Opened November 22, 2017by krunal0391 reactions

Classes are missing on editor.gethtml()

Question

I can see classes are added on canvas but when I get html via editor.gethtml(), i so some of classes are not included and it is just divs without any classes. attached screenshot with html on canvas and html via editor.gethtml()

capture

Answers (3)

GeczyNovember 22, 20171 reactions

Don't think gjs- prefixed classes will return

arthuralmeidapNovember 22, 20170 reactions

When you use the editor.getHtml it returns just the html . If you need the css too, you can use the editor.getCss().

GeczyNovember 22, 20170 reactions

I use newsletter-plugin and const html = window.grapesjs.editors[0].runCommand('gjs-get-inlined-html')

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.