github GrapesJS/grapesjs v0.16.34

latest releases: v0.21.13, v0.21.12, 0.21.11...
3 years ago

Docs

  • Updated Components & JS guide with the new approach for the creation of Components with JS (the old one still works).
    The biggest advantage over the previous one is how the final code is created. With the old one, you could have the whole script content duplicated as many times as components of the same type (new script content will be output only once per type). The new approach avoids also issues with different JS minifiers (due to string templates).

Added

  • Added script-props property to Component. Read the new Components & JS
  • Wherever you add/remove/update a component you can now pass noCount option to avoid triggering the count of changes (eg. for skipping the Storage)
editor.addComponents('<div>New components</div>', { noCount: true });
// or
component.append('<div>New components</div>', { noCount: true });
  • Added move() method to the Component

Changed

  • Start using grapesjs-cli for the dev server and the build
  • In UndoManager, start using noUndo option instead of avoidStore for skipping the trigger
  • Rerender Component toolbar when necessary
  • Keep track of selected components when turning on/off the preview

Fixed

  • Avoid useless change counter updates #3189
  • Properly hide all toolbars when a Component is removed #3175
  • Pass properly the options when removing components and rules #3176
  • Adjust editor listeners in PropertyView #3197
  • Avoid twice the storage of src in Image components #3201
  • Hide properly the toolbar on the preview on #3209

Don't miss a new grapesjs release

NewReleases is sending notifications on new releases.