Issue #1233Opened June 25, 2018by JPPreusDev0 reactions

How to grab the html code using javascript

Question

I would like to grab the contents of the created HTML document using javascript so I can submit it using a form. How would I select the HTML content?

Answers (3)

ivanezeigboJune 25, 20180 reactions

These two lines of code give you the html and the css

var Html = editor.getHtml(); var Css = editor.getCss();

JPPreusDevJune 30, 20180 reactions

Great! Thank you.

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.