Issue #1132Opened May 25, 2018by agungjanuar0 reactions

[Question] How do I get <body> tag and its attributes

Question

I have set the background-color for body. But when it will be edit code or export data using command editor.runCommand ('gjs-get-inlined-html'); there is no attribute for body that has been set. How do I solve for the body tag to retrieve when using that command? Or is there another way?

Image when set background-color for body: image Image when edit html (no attribute for body): image

Thanks.

Answers (3)

artfMay 31, 20180 reactions

There is an option for it

editor.init({
	...
	exportWrapper: true,
})
agungjanuarJune 4, 20180 reactions

Thanks @artf , it works :)

lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.