0.1.11 • Published 5 years ago

@touchflows/buzzcasting-storage-idb v0.1.11

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
5 years ago

GrapesJS keyval IndexedDB

IndexedDB storage wrapper for GrapesJS

Requires GrapesJS v0.14.15 or higher

Summary

  • Plugin name: buzzcasting-storage-idb
  • Storage
    • indexeddb

Download

  • CDN
    • https://unpkg.com/@touchflows/buzzcasting-storage-idb
  • NPM
    • npm i @touchflows/buzzcasting-storage-idb --save
  • GIT
    • git clone https://github.com/@touchflows/buzzcasting-storage-idb.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/@touchflows/buzzcasting-storage-idb.min.js"></script>

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

<script type="text/javascript">
  var editor = grapesjs.init({
      container : '#gjs',
      ...
      storageManager: {
        type: 'indexeddb',
      },
      plugins: ['buzzcasting-storage-idb'],
      pluginsOpts: {
        'buzzcasting-storage-idb': {
          // options
        }
      }
  });
</script>

Development

Clone the repository

$ git clone https://github.com/@touchflows/buzzcasting-storage-idb.git
$ cd buzzcasting-storage-idb

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

0.1.11

5 years ago

0.1.10

5 years ago

0.1.5

5 years ago