Unable to override wrapper built-in component #5169
Replies: 1 comment
-
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.
-
editor.Components.addType('wrapper', {
model: {
defaults: {
tagName: 'div', // use
div
instead ofbody
in HTML export},
// Skip wrapper in the HTML output
toHTML(opts) {
return this.getInnerHTML(opts);
}
}
})
I'm trying to override built-in wrapper but this doesn't work me. Wrapper is adding body tag which I don't need.
How to fix it? Any help would be appreciate. Thanks
Beta Was this translation helpful? Give feedback.
All reactions