Replies: 2 comments 2 replies
-
You can update the wrapper component in this way editor.Components.addType('wrapper', {
model: {
defaults: {
tagName: 'div', // use `div` instead of `body` in HTML export...
},
// ...or skip the wrapper tag
toHTML(opts) {
return this.getInnerHTML(opts);
}
}
}) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Why not this?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've just started implementing GrapeJS and all is going well so far except for when I use the getHTML() method.
In short it is also providing the default tags which I could do without. I was wondering if there is a way to either change these to a DIV or remove them from the output altogether but keep the remaining tags/components?
TIA
Beta Was this translation helpful? Give feedback.
All reactions