@documint/grapesjs-grid-system

0.0.57 • Public • Published

GrapesJS Grid System Plugin

This plugin add the Grid System for editor

GrapesJS Development - link

Summary

  • Plugin
    • Name: gis-plugin-grid
    • Options:
      • default_css Disable the default grid css, default = true
      • default_components Remove from blocks 4 default components, default = true

Download

  • npm i grapesjs-plugin-grid
  • Latest release link {ADD URL}

Usage

<link href="path/to/grapes.min.css" rel="stylesheet"/>
<script src="path/to/grapes.min.js"></script>
<script src="dist/grapesjs-plugin-grid.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
      container : '#gjs',
      plugins: ['gis-plugin-grid'],
      pluginsOpts: {
        'gis-plugin-grid': {
            default_css: true,
            default_components: true,
          }
      }
  });
</script>

Development

Clone the repository

$ git clone {ADD URL}
$ cd grapesjs-plugin-grid

Install dependencies

$ npm i

Start the dev server

$ npm start

TODO

  • When the last column is removed delete the parent row
  • Fix bug when dragging column from one row to another

Package Sidebar

Install

npm i @documint/grapesjs-grid-system

Weekly Downloads

1

Version

0.0.57

License

MIT

Unpacked Size

77.5 kB

Total Files

15

Last publish

Collaborators

  • ju99ernaut
  • joshmamroud