thewrath / grapesjs-html-form-storage

GrapesJS plugin to store editor content into HTML form input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GrapesJS HTML Form Storage (Unofficial)


Download

  • npm i grapesjs-html-form-storage

Usage

<link href="path/to/grapes.min.css" rel="stylesheet"/>
<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-html-form-storage.min.js"></script>

<input hidden id="storage" type="textarea" value="" />

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

<script type="text/javascript">
  var editor = grapesjs.init({
      fromElement: 1,
      container : '#gjs',
      plugins: ['grapesjs-html-form-storage'],
      pluginsOpts: {
        'grapesjs-html-form-storage': {
          storageElementId: 'storage' // Required
        }
      }
  });
</script>

License

MIT

About

GrapesJS plugin to store editor content into HTML form input


Languages

Language:JavaScript 61.9%Language:HTML 38.1%