github GrapesJS/grapesjs v0.20.1

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

⚠️ POSSIBLY BREAKING CHANGE

If for any reason you're still using the legacy API for registering your custom components you have to switch to the documented one.
Legacy API (which uses extended components via typeModelOrView.extend):

Components.addType('component-id', {
 model: defaultModel.extend({
   defaults: {
        ...defaultModel.prototype.defaults,
       someProp: '...',
       // ...
   }
 }),
// same for the view
});

Current API:

Components.addType('component-id', {
 model: {
   defaults: {
       someProp: '...',
       // ...
   }
 },
// same for the view
});

Added

Changed

  • Update iframe size on device update
  • Use mousePosFetcher also on start in Resizer #4580

Fixed

  • Support textable for extended Text components #4440
  • Fixed headless mode with images and videos #4473 #4474
  • Fixed iframe component view #4480
  • Avoid inserting default line breaks in RTE with insertOrderedList/insertUnorderedList commands #4449
  • Update the iframe size on page select #4489
  • Ensure to always update the layer name #4544
  • Correct type traits to support a list of string and object #4536
  • Honor the config.optsHtml option in HTMLGenerator
  • Update Components.resetFromString to avoid removing cloned elements during RTE editing (CLOSE #4559)
  • Fixed "TypeError: this.parseStyle is not a function" when setStyles is called internally @collins-lagat #4520
  • Fixed mobile first sort on CSS rules view @iagormoraes #4521
  • Fixed broken link in Selector Manager Config @zerexei #4504

Full Changelog: v0.19.5...v0.20.1

Don't miss a new grapesjs release

NewReleases is sending notifications on new releases.