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/