Class not exported for body
Question
- Go to https://grapesjs.com/demo.html
- Clear canvas
- Click on body, add class, apply background color
- Background color now appears
- Click
Export-> Export to Zip - Open the Zip file and look at the
index.htmlfile. While the class was created in style.css, the class name was never applied to<body></body>in the html.
Answers (1)
I'm experiencing the same problem. The wrapper class attribute is set but the editor.getHtml() returns "<body></body>". I'm initalizing GrapesJS using: { fromElement: true, autorender: 0, // Size of the editor height: '100%', width: '100%', showOffsetsSelected: true, log: true, allowScripts: 1, mediaCondition: 'min-width', exportWrapper: 1, wrapperIsBody: 1, clearStyles: 0,
domComponents: { storeWrapper: 1 }
}
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2508
[Bug] Draggable property added in the final HTML text components
This bug is also on the online demo : https://grapesjs.com/demo.htmlAdd a Text Block to the page, start typing and hiting enter to make sev...
Issue #3579
BUG: RTE misplaced when opened right after dropping `activeOnRender` component
Version: 0.17.4 Are you able to reproduce the bug from the demo?[x] Yes[ ] No Steps to reproduce:Go to the demoDrop a "Text" block inside t...
Issue #2478
Error when trying to move cell from row
If try move cell from table on body then appears error Also error appears on grapesjs demo https://grapesjs.com/demo-newsletter-editor.html
Issue #1396
[Bug] Background image layers
Bug: when your pre-defined block or saved templates have two or more background layers, if you add a new layer, a lot of new empty layers a...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.