github GrapesJS/grapesjs v0.18.4

latest releases: v0.22.3, v0.22.2, v0.22.1...
2 years ago

⚠️ Removed

  • Removed config.wrapperIsBody, config.exportWrapper options.
    Now is the wrapper component itself to indicate what tagName to use and how to output the HTML.
    So, if necessary you can extend the default wrapper as any other component and specify your logic.
editor.Components.addType('wrapper', {
 model: {
   defaults: {
     tagName: 'div', // use `div` instead of `body` in HTML export
   },

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

Added

  • Added index.d.ts file. Thanks to @erdomke

Changed

  • Update component toolbar icons
  • Improve component delete command

Fixed

  • Prevent form submit in ClassTagsView #4166
  • Fixed editing logic for links #4145
  • Fixed RTE icons in Firefox #4176
  • Fixed tagName for SVG elements #4188
  • Ensure frame existence in SelectComponent #4187
  • Prevent divs on RTE paste and plain text #4195
  • Fix issues with the state rule. Closes #4208

Don't miss a new grapesjs release

NewReleases is sending notifications on new releases.