v0.14.21
Changed
- Listen for
contentchanges inside ComponentView - Enabled
block:drag:*events when HTML5 Drag&Drop is used
Added
- Added
setOptions,addOptionandgetOptionsto select property in Style Manager #1215 - Added the possibility to output custom attributes in
toHTMLmethod - Added the possibility to avoid clearing styles in CSS export
- Added
stopPropagationin ComponentTextView ondblclickevent - Added
activateandselectoptions to Block models - Added
onAllmethod to Component model. Executes a callback on any inner component - Added
resetIdmethod on Component andresetIdpropperty on Block model
This allows to reset id of the component and its binded css rules.
This comes handy when you use ids inside you blocksTechnically speaking, Blocks are reusable and IDs are not, so this will cause a problem.<div id="some-id"></div> <style> #some-id { ... } </style>
So with this new option, IDs will be changed automatically inside all dropped componentsblockManager.add('some-block', { resetId: true, content: `<div>...` })