Skip to content
Discussion options

You must be logged in to vote

The body is the wrapper component, so you can extend it as you wish, for example:

editor.Components.addType('wrapper', {
 model: {
   defaults: {
     tagName: 'div', // use `div` instead of `body` in the HTML output
   },

   // Skip wrapper in the HTML output
   toHTML(opts) {
     return this.getInnerHTML(opts);
   }
 }
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@padcom
Comment options

Answer selected by padcom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants