GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.38k stars 4.06k forks source link

[FEATURE REQUEST] Add command to get actual template imported into editor #1743

Closed sankaran85 closed 5 years ago

sankaran85 commented 5 years ago

Hi Team,

We are using grapesjs newsletter plugin in our project for importing and preview the template. We are facing some difficulty in retaining the template structure which we import in to grapesjs editor. Please check the below example

IMPORTED HTML

<!DOCTYPE html>

Grapesjs

My first grapesjs template.

EXPECTED OUTPUT

<!DOCTYPE html>

Grapesjs

My first grapesjs template.

ACTUAL OUTPUT , what we get from editor using the command (editor.runCommand('gjs-get-inlined-html'))

Grapesjs

My first grapesjs template..

From the output u can see grapesjs has customised the actual template uploaded, by stripping off the html, head and body tags and adds new style tag in the content, Which we don't want to happen.

Is it possible for grapesjs editor to output html without altering the basic structure of the imported template. We looked for some options but couldn't find any.

Please help us in achieving this .

Thanks

lock[bot] commented 4 years ago

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.