Docs
- Added Canvas module API https://grapesjs.com/docs/api/canvas.html
- Added Component API https://grapesjs.com/docs/api/component.html
Changed
- Replace
isInputFocused
withisEditing
in UndoManager - Clear traits values on init in Components
- Now command's state (active or not) is tracked.
const cm = editor.Commands; cm.run('preview'); cm.isActive('preview'); // -> true cm.stop('preview'); cm.isActive('preview'); // -> false
Added
- Added the possibility to use plugins assigned in
window
. More on this - Added new methods to Commands API:
getAll
,isActive
,getActive