github GrapesJS/grapesjs v0.14.55

latest releases: v0.21.10, v0.21.9, v0.21.8...
5 years ago

⚠️ POSSIBLY BREAKING CHANGE

Changed

  • Allow default as a function in component addType
  • Add the possibility to preventDefault from add method, in Keymaps module
  • ⚠️ Commands run/stop can't be executed many times in the same state.
    So if the command is already active, calling it via editor.runCommand will
    not trigger that command again. But in case you need to run the command, in any
    way, you can force its execution with force:
    editor.runCommand('CMD', { force: 1 });
  • Avoid duplicate IDs on components
  • Refactor TraitSelectVIew and listen options changes
  • Ensure default units for devices
  • Move ratioDefault option from the Resize command to image component
  • Accept classes as a string in Component
  • Refactor @utils/Resizer and update its container on text component change
  • Improve the recognition of stateless commands
  • Merge element content in text components before toHTML. Closes #1767

Added

  • Added model and property value to the trigger of change:attributes:ATTR event
  • Added the possibility to disable StorageManger with storageManager: false (any falsy value is ok)
  • Custom tag for buttons in Panels module. Closes #1787
  • Added the possibility to zoom the canvas via editor.Canvas.setZoom(VALUE_FROM_0_TO_100)
  • Added custom render for blocks. Now you can pass a render callback function when you create blocks (Blocks docs updated)
  • Added fallback property to Image component and its default placeholder images
  • Added component:type:add and component:type:update events to track changes on component types
  • Added update event to generally listen any change to the template (HTML/CSS)

Fixed

  • Fixed not working toolbar buttons with Text components. #1567 by @arthuralmeidap
  • Ensure default CSS block container. Fixes #1829
  • Avoid property breaking in StyleManager without property. Fixes #1830
  • Reset upload input file in AssetManager. Closes #1816
  • Fix empty provider select in the video component traits
  • Check protected attribute before removing a tag #1857 by @WebEtSolutions
  • Fix scrollIntoView issue in Layers. Closes #1865

Removed

  • Removed old commands: image-comp, text-comp, insert-custom

Don't miss a new grapesjs release

NewReleases is sending notifications on new releases.