Releases: GrapesJS/grapesjs
Releases · GrapesJS/grapesjs
v0.16.27
Added
- Expose PropertyFactory in StyleManager
- Added
tools
option toeditor.refresh()
- Handle multiple selection in Layers
- Trigger
change:style
andchange:style:PROPERTY
event on selected componets during style update via Style Manager - Added
attributes
option to theModal.open()
method #2592
editor.Modal.open({ title: 'T', content: 'C', attributes: { class: 'custom-cls' } })
- Added
parse:html
andparse:css
events for catching parsers results - Added Polish language #3087
Changed
Fixed
- Fixed for in loop in commands #3006
- Check only the component style for the target update #2657
- Avoid dragging in canvas non-draggable components #3014
- Destroy correctly the LayerManager #3005
- Prevent update trigger from TraitNumberView
- Fixed default value get in TraitNumberView
- Fixed non integer steps for slider property #3029
- Don't use
display: block
on visible sectors and properites in StyleManager #3067 - Rollback to the
strikeThrough
RTE command #3047 - Avoid style remove on blur from the text component #3069
- Fixed setTarget method in StyleManager #3081
v0.16.22
Added
- Expose options parameter to
setStyle
&setComponents
#2872 - Added Korean language #2983
- New API for custom properties in Style Manager (similar to Traits)
Changed
- Made Helvetica sans-serif by default #2881
- Replace obsolete tag
<strike>
by<s>
in RTE #2886 - Avoid adding, to components, empty parsed HTML strings
- Added
options
as a second argument ofcomponent.addAttributes
method
Fixed
- Output properly boolean attributes from HTML string import (eg. required, disabled) #2844
- Update component tools box once image finished to load #2871
- Fixed retrieval of layers' visibility #2863
- Ensure resizer on the correct component #2876
- Disable component drag on preview #2904
- Render correctly the textnode component #2882
- Add
list
prop to video component (youtube related) #2887 - Ensure selected value in select Trait type #2896
- Fully clear hover state on mouseleave #2907
- Avoid infinite recursion in Firefox on component drag #2911
- Fixed
editor.load
bug with undo manager #2921 - Make textnodes correctly removable #2918
- Prevent error on
editor.destroy()
with selection #2953 - Update Style Manager on Layer visibility change #2938
- Prevent errors on body hover #2974
- Added
listenToEl
option in order to refresh the editor on scrollable elements #2722 - Put quotes around URLs in CSS property like
background-image
#2975 - Fixed retrieval of text component content with custom RTE #2977
- Fixed issues with the stack property in StyleManager
v0.16.17
Added
- Added Bosnian locale file #2736
- Added Chinese (simplified) locale file #2804
- Added
colorPicker
option to color trait type, for color picker customization - Added the possibility to change block attributes dynamically
Changed
- Render only visible blocks for external block containers
- Use postRender in ComponentScriptView
- Init a component by using class from attributes if
classes
property is missing #2836
Fixed
- Ensure selectors on CSS rule add
- Update external SCSS imports
- Prevent errors, in SelectComponent, from debounced functions #2802
- Fixed French translations
- Catch error and skip rendering of invalid Component definitions (eg. invalid attribute name) #2029
- Fixed video component issues #2773
- Trigger change on values with empty value #2835
- Fix remove unused styles #2800
- Prevent default for delete shortcut #2765
v0.16.12
Added
- Added Brazilian Portuguese language #2653
- Added
closestType
andempty
methods to Component API - Added
disable
property to the Block - Added module aliases to the Editor object
DomComponents
->Components
LayerManager
->Layers
CssComposer
->Css
StorageManager
->Storage
AssetManager
->Assets
BlockManager
->Blocks
TraitManager
->Traits
SelectorManager
->Selectors
StyleManager
->Styles
DeviceManager
->Devices
Changed
- Customize Sorter placeholder color via CSS #2662
- Add a default limit (500) of maximum steps in UndoManager
Can be changed byconfig.undoManager.maximumStackLength
option on init
Fixed
- Update canvas tools on input event trigger in components
- Fix borders not always toggling back when exiting preview #2689
- Close the color picker if click event happens on canvas #2695
- Avoid canvas errors by ensuring the view on the element render
- Fixed wrong toolbar position #2656
- Fixed major memory leaks in components
- Fixed TableRow model component #2697
- Fixes on color picker #2694
v0.16.3
v0.16.2
Added
- Added
style:update
andstyle:update:{property}
events for StyleManager - Added new
component:drag
events #2500 - Added a new
svg-in
component to handle better inner SVG elements - Trigger
component:drag
events in Layers #2528 - Added German translation by @chickahoona #2578
- Added new
config.assetManager.showUrlInput
option. by @jcamejo #2602
Changed
- Refactored the canvas #2524
- Improved how the style property is taken in stack properties
Fixed
- Check property visibility on render #2497
- Fix Selector Manager styles for Firefox/IE/Edge #2490
- Update video attributes on render #2501
- Avoid useless attributes on nodes inside text components #2508
- Avoid 404 requests on background property change #2538
- Update style on block drop in absolute mode
- Check visibility borders on preview stop #2589
- Preserve the display value on layer hide #2571
- Check for the href value in appendStyles to avoid 404 errors #2605
- Fix ComponentImage's default src not being base64 encoded #2619
v0.15.10
Added
- Added new options for customization to
config.selectorManager
and the component-first selection viaconfig.selectorManager.componentFirst
option #2474 - Added
state
option in RTE actions to enable custom checks for enabling/disabling action buttons. Thanks @adriangroch #2429 - Added Spanish language. Thanks to @josfh2005 #2443
- Added French language. Thanks to @jmalapeer #2449
Changed
- Escape HTML characters when converting text node to HTML. Thanks @mcammisa #2446
- Use
custom-name
property on layer name edit - Update layers view when component prop
layerable
changes #2433
Fixed
v0.15.9
Docs
- Added documentation about I18n Module and its API
Changed
- Sync text component content with custom RTE #2292
- Removed FontAwesome from dependencies to load it asynchronously by the new
cssIcons
option #644
Added
- I18n module
Fixed
- Fixed text component issue on toolbar commands execution #2294
- Fixed Firefox bug with label editing #2332
- Fixed issues in absolute mode and components with scripts #2359
- Fixed body counter in Layers #2413
- Make integer property extendable #2360
- Fixed issue on component drag in absolute mode #2371
- Preserve selection after
canvas:drop
#2396 - Remove empty value from
target
trait #2411
v0.15.8
Changed
- Make
config.avoidInlineStyle
true by default
We actually gonna stop to support the old inline-style method so this option will be removed soon - Guarantee the uniqueness of components id
Now if you update the component with the id attribute that already exists, it will rollback to the previous one
Added
- Added
config.styleManager.textLayer
option #2246
Fixed
v0.15.5
Docs
- Update docs for richTextEditor config #2241
Changed
⚠️ Typo fixconfig.wrappesIsBody
->config.wrapperIsBody
@jcamejo #2222- Set
avoidDefaults
true by default - Support objects/arrays in script interpolations #2239
Added
- Added
at
option toaddProperty
method in StyleManager #2213 - Added
config.assetManager.beforeUpload
callback option (thanks to @tliscomb) #2227