Releases: GrapesJS/grapesjs
Releases · GrapesJS/grapesjs
v0.17.27
Docs
- Updated Blocks module documentation.
- Updated CSSRule model documentation.
- Added Components & CSS section.
- Added Frame model documentation.
Added
- Added
getAllWrapper
method to Pages API. - Added
remove
andaddRules
methods to CssComposer API. - Added
onReady
method to Editor instance. - Added support for component related styles.
- Added support for custom Block Manager with the new
config.blockManager.custom
option. More about this here.
Changed
Fixed
- Fixed CssComposer add/get methods
- Fixed default render of modules containing
appendTo
#3835
v0.17.26
Docs
- Added Modal module documentation.
- Added Asset model documentation.
- Improved Modal API documentation.
- Improved Assets module documentation.
Added
- Support custom Modal with the new
config.modal.custom
option.
More about this here. - Added
modal
catch-all event to Modal module. - Support custom AssetManager with the new
config.assetManager.custom
option.
More about this here. - Added
open
andclose
methods to AssetManager. - Added
getType
andgetSrc
methods to Asset class.
Fixed
- Fixed rendering issue with custom traits #3735
v0.17.25
Docs
- Added Parser API Reference
- Added CssRule API Reference
- Added Block API Reference
- Added Device API Reference
- Updated Devices API Reference
Added
- Added
headless
option in order to use GrapesJS in Nodejs.
Not all the API are supported: #3672 - Added
canvas.getCoords
andcanvas.setCoords
methods #3668 - Added
default
device option in deviceManager configuration #3679 - Added
onClick
property to Block - Allow Content-Security-Policy without unsafe eval #3558
Fixed
v0.17.22
Added
- Allow exporting CSS rules from code manager by using
json
option.
editor.CodeManager.getCode(component, 'css', { json: 1 })
- Generate CSS code from the array of rules in code manager.
editor.CodeManager.getCode(null, 'css', { rules: [...] })
- Added
editor.addStyle
method - Added
editor.getEditing
method
Fixed
v0.17.19
Added
Changed
- Deprecated
style-signature
Component property
Fixed
v0.17.4
Added
- Add a new
extend
option in LayerManager config, in order to extend the layer item view
Changed
- Allow
droppable
component property to be a function for a more granular check #3393
Fixed
- Avoid tracking device changes in undo manager #3437
- Prevent breaking the changes counter #3412
- Fix destroy method #3442
- Check target in sorter before move #2498
- Fixed issue with panels visible attribute being not used #3430
Removed
⚠️ v0.17.3
v0.16.45
v0.16.44
v0.16.41
Added
- Added root options
optsHtml
andoptsCss
, in order to pass them as default toeditor.toHtml()
andeditor.toCss()
(eg. used already in the export code and the Storage) - Added
cleanId
option toeditor.getHtml
in order to remove unnecessary IDs (eg. those created automatically) - Added
Component.removeAttributes
method - Added
options
as a second argument to theComponent.components()
method - Added
ComponentView.onAttrUpdate
callback - Added
component:remove:before
event. This allows to put conditions before deleting a component
editor.on('component:remove:before', function(component, remove, opts) {
if (component.is('my-custom-type')) {
opts.abort = true; // This will abort the remove
// Pseudo-code of some modal/dialog
yourAsyncDialog('Are you sure?', {
confirmed: () => remove(), // complete the remove
});
}
});
Changed
- Skip the CSSRule from the JSON if there is no
style
- Avoid rendering
content
if the component has childrencomponents
Fixed
- Fixed useless updates in
component.addAttributes
- Defer SelectComponent in order to prevent canvas "freeze" #2692
- Make the Droppable end event more reliable
- Hide toolbars properly
- Pass properly options in setStyle #3176
- Trigger the counter change on text update #3224
- Fixed Sorter errors and moved them in the warning logs
- Avoid dropping non-selectable and non-editable text nodes inside the editor