vue-grapesjs-component
Use grapesjs like vue component.
Install
npm install --save vue-grapesjs-component
or
yarn add vue-grapesjs-component
Usage
Plugin install:
; Vue
and then:
Hello
In your layout html add grapesjs library:
Props
name | type | default | description |
---|---|---|---|
config | Object | - | Go to grapesjs documentation in initialize section for more details |
Events
name | description | $event |
---|---|---|
load | Fires when editor is initialized | editor |
update | Fires when the structure of the template is updated | { components: Array, styles: Array } |
Slots
name | description |
---|---|
default | Template content |
License
MIT