#
GrapesJS Preset Webpage
#
Summary
- Plugin name:
gjs-preset-webpage
- Includes:
grapesjs-blocks-basic
Basic set of blocksgrapesjs-navbar
Simple navbar componentgrapesjs-component-countdown
Simple countdown componentgrapesjs-plugin-forms
Set of form components and blocksgrapesjs-aviary
Add the Aviary Image Editorgrapesjs-plugin-filestack
Add Filestack uploader in Asset Managergrapesjs-plugin-export
Export GrapesJS templates in a zip archive
- Commands:
gjs-open-import-webpage
Opens a modal for the importset-device-desktop
Set desktop deviceset-device-tablet
Setup tablet deviceset-device-mobile
Setup mobile devicecanvas-clear
Clear all components and styles inside canvas
- Blocks:
link-block
quote
text-basic
#
Options
#
Download
$ npm i grapesjs-preset-webpage
#
Usage
<link href="path/to/grapes.min.css" rel="stylesheet"/>
<link href="path/to/grapesjs-preset-webpage.min.css" rel="stylesheet"/>
<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-preset-webpage.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container : '#gjs',
...
plugins: ['gjs-preset-webpage'],
pluginsOpts: {
'gjs-preset-webpage': {
// options
}
}
});
</script>
#
Development
Clone the repository
$ git clone git@github.com:artf/grapesjs-preset-webpage.git && cd grapesjs-preset-webpage
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
#
License
BSD 3-Clause