Skip to content

Releases: GrapesJS/grapesjs

v0.14.10

29 Apr 12:21
Compare
Choose a tag to compare

Changed

  • OpenAssets now accepts types and accept options #1028
  • Updated what is passed to component:selected event (model and options)

Added

  • Added keepUnusedStyles option for preservation of unused styles #1053
  • Improved styleable:* events #1041
  • Added component:deselected event

Fixed

  • Return the result from runCommand and stopCommand #1051
  • Update store after changes to css #1049
  • Refocus on resizable components #976
  • Make the UndoManager listen for rules changes

Removed

  • Removed deprecated select-comp and deselect-comp events

v0.14.9

15 Apr 12:04
Compare
Choose a tag to compare

Changed

  • Avoid adding CssRules with empty style object

Added

  • Added new commands lifecycle events, run:{commandName}:before, stop:{commandName}:before, abort:{commandName} #915
  • Added core:component-delete command
  • Added storage:start:store, storage:start:load, storage:end:store, storage:end:load events
  • Added avoidDefaults option (smaller JSON objects in export)
  • Added keepEmptyTextNodes option #1023
  • Added label property to buttons #1031
  • Listen and render traits change on components

Fixed

  • Fix some issues with IE11 #768
  • Check if the event exists in move command #710
  • Fixed youtube loop parameter in Video Component #969
  • Don't stringify scripts function in toJSON method #980
  • Fixes to make the editor work in IE11 #768
  • Fixed media queries ordering bug #896
  • Allow multiple at-rules in the CSS #1032
  • Support percentage based media-widths #1037

Removed

  • Removed controls option for Vimeo videos #977

v0.14.6

18 Mar 22:59
Compare
Choose a tag to compare

Changed

  • Don't trigger component:add when components are just moved #868

Added

  • Hide very large labels in blocks
  • Show a message in trait manager panel when there is no component selected #869

Fixed

  • Init correctly components with javascript #873
  • Fix errors when the editor is reinitialized #914
  • Escape string in HTML attributes #912
  • Manage correctly boolean attributes in HTML output #943
  • Prevent the editor from being injected twice during development #928
  • Fixed the import of components and styles with the same ids #932

Removed

  • Removed add:component event

v0.14.5

10 Feb 20:31
Compare
Choose a tag to compare

Changed

  • ⚠️ POSSIBLY BREAKING CHANGE ⚠️ Panel ids are moved to classes
    So if you've used selectors like #gjs-pn-* (in CSS/JS) you should change them to .gjs-pn-*
  • Append the Modal inside the container element

Added

  • Added remove listener to buttons in panels. Closes #824
  • Added the possibility to render panels outside of the main editor container, eg.
    editor.Panels.addPanel({
      id: 'myNewPanel',
      el: 'query-selector', // or HTMLELement
    })
  • Added the possibility to render Layers, Block, Styles, Selectors and Traits
    outside of the main editor container (via appendTo option), eg.
    grapesjs.init({
      ...
      layerManager: {
        appendTo: 'query-or-element',
        ...
      },
      blockManager: {
        appendTo: 'query-or-element',
        ...
      },
      styleManager: {
        appendTo: 'query-or-element',
        ...
      },
      selectorManager: {
        appendTo: 'query-or-element',
        ...
      },
      traitManager: {
        appendTo: 'query-or-element',
        ...
      }
    });
    Live demo with a totally custom UI
    https://codepen.io/artf/full/MQpZPj/
    custom-ui

Fixed

  • Fixed toolbar position on window resize #810
  • Extend correctly Layers options #812
  • Parse correctly the integer value with a function #806
  • Execute the callback in StorageManager even with an empty storage

0.13.8

25 Jan 22:17
Compare
Choose a tag to compare

Added

  • Experimental clearStyles option. Helps removing unused styles
  • Added atRuleType property to CSSRule
  • Added support for @keyframes and @font-face at-rules #276
  • Added closest method in Component
  • Added addAttributes method in Component
  • Added onRender in ComponentView

Changed

  • Update getModelToStyle method and make it the single source of truth for styling
  • Update default add and remove listeners in UndoManager

Fixed

  • Avoid response errors on store #759
  • Pass correctly the component's model on component:update:* events
  • Fix the update of the Style Manager with changed state
  • Fix toLoad property in Editor (for multiple editor use) #773
  • Fix assets preview when filepath has spaces #775
  • Extend unbind method to accept object arguments #779
  • Clear the canvas offset on resize #699
  • Added dragContent in getContentByData of Droppable #792

v0.13.5

14 Jan 23:22
Compare
Choose a tag to compare

Updated

  • Update how attributes are exported inside toJSON in Components
  • Create randomized ids for Components
  • Removed the src attribute from the canvas's iframe

Added

  • Added overflow-x: hidden to the wrapper
  • Added component:clone event #739
  • Added component:remove event #748
  • Added prettier with a precommit hook
  • Added the possibility to order Block's categories #742
  • Added native HTML5 Drag and Drop support, disableable by nativeDnd option (true by default)
    If you use block:drag:* events with this module enabled, you have to switch to these new one
  • Added getEl in Component
  • Added async loading of images in ComponentImageView with a new file property

Fixed

  • Fixed bug with color traits #731
  • Fixed bug of the toolbar with small components #752
  • Prevent issues with devices with the same width #727

v0.12.60

09 Jan 12:33
Compare
Choose a tag to compare

Notable Changes

  • Remove edit button from videos #463
  • Fix find method in Component
  • Add fill for the blocks-svg style
  • Added name property in Component. Replacement of custom-name
  • Updated the RegExp of script replacer and stop accepting only word characters
  • Fixed the increment of InputNumber when the value is a string
  • Fix classes initialization (this.get(...).each is not a function) inside Component. Fixes #724

v0.12.58

04 Jan 22:33
Compare
Choose a tag to compare

Notable Changes

  • Fix class removing from Components #661 #680
  • Replace targetClass* events with component:update:classes
  • Fix toolbar visibility on iframe scroll #681
  • Emit change:attributes:* events from Components
  • Refactor TraitView and sync it with target changes #686
  • Avoid huge repaint on toggleSortCursor in Sorter. Fixes #595

v0.12.55

19 Dec 23:58
Compare
Choose a tag to compare

Notable Changes

  • Now UndoManager has its own module
  • Added undo and redo events
  • Update the Component once the tagName is updated #639
  • Add a class prefix for the layers's eye #645
  • Remove copyPaste option and put core:copy/core:paste inside default keymaps
  • Add removeClass and find in Component
  • Add support for IE and Edge #214

v0.12.52

10 Dec 14:03
Compare
Choose a tag to compare

Notable Changes

  • Added the possibility to attach custom attributes on traits. #589
  • Added removeSector and removeProperty in StyleManager. #587
  • Added the possibility to specify the height of devices #599
  • New table components #606
  • New is(type) method in Component model