#
GrapesJS Custom Code
This plugin adds the possibility to embed custom code
Requires GrapesJS v0.14.25 or higher
#
Summary
- Plugin name:
grapesjs-custom-code
- Components
custom-code
- Blocks
custom-code
- Commands
custom-code:open-modal
#
Options
#
Download
- CDN
https://unpkg.com/grapesjs-custom-code
- NPM
npm i grapesjs-custom-code
- GIT
git clone https://github.com/artf/grapesjs-custom-code.git
#
Usage
<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-custom-code.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container : '#gjs',
...
plugins: ['grapesjs-custom-code'],
pluginsOpts: {
'grapesjs-custom-code': {
// options
}
}
});
</script>
#
Development
Clone the repository
$ git clone https://github.com/artf/grapesjs-custom-code.git
$ cd grapesjs-custom-code
Install dependencies
$ npm i
Start the dev server
$ npm start
#
License
BSD 3-Clause