Releases: GrapesJS/grapesjs
Releases · GrapesJS/grapesjs
v0.14.10
Changed
OpenAssets
now acceptstypes
andaccept
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
andstopCommand
#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
anddeselect-comp
events
v0.14.9
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
script
s 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
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
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 (viaappendTo
option), eg.Live demo with a totally custom UIgrapesjs.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', ... } });
https://codepen.io/artf/full/MQpZPj/
Fixed
0.13.8
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
andremove
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
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 useblock: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
v0.12.60
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 ofcustom-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
Notable Changes
- Fix class removing from Components #661 #680
- Replace
targetClass*
events withcomponent: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
Notable Changes
- Now
UndoManager
has its own module - Added
undo
andredo
events - Update the Component once the tagName is updated #639
- Add a class prefix for the layers's eye #645
- Remove
copyPaste
option and putcore:copy
/core:paste
inside default keymaps - Add
removeClass
andfind
in Component - Add support for IE and Edge #214