- Plugin name:
gjs-plugin-actions
Option | Description | Default |
---|---|---|
textCleanCanvas |
Confirm text to clean the canvas | Are you sure you want to clean the canvas? |
cleanBtnTitle |
The button's title | Clean the canvas |
importBtnTitle |
The button's title | Import |
undoBtnTitle |
The button's title | Undo |
redoBtnTitle |
The button's title | Redo |
modalImportLabel |
mport description inside import modal | `` |
modalImportContent |
Default content to setup on import model open. | `` |
modalImportButton |
Modal import button text | Import |
modalImportTitle |
Modal import title | Import |
- NPM
npm i grapesjs-plugin-actions
- GIT
git clone https://github.com/omarmd1986/grapesjs-plugin-actions.git
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="path/to/grapesjs-plugin-actions.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container : '#gjs',
...
plugins: ['gjs-plugin-actions'],
pluginsOpts: {
'gjs-plugin-actions': {
// options
}
}
});
</script>
Clone the repository
$ git clone https://github.com/omarmd1986/grapesjs-plugin-actions.git
$ cd grapesjs-plugin-actions
Install dependencies
$ npm i
The plugin relies on GrapesJS via peerDependencies
so you have to install it manually (without adding it to package.json)
$ npm i grapesjs --no-save
Start the dev server
$ npm start
BSD 3-Clause