Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
/ grapesjs-expose Public archive

GrapesJS plugin used to expose data from models on global scope

License

Notifications You must be signed in to change notification settings

alvim/grapesjs-expose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GrapesJS Expose

This plugin adds the possibility to expose data on a global variable.

Sumary

  • Plugin name: grapesjs-plugin-expose

Options

  • target Property of window that will receive the data. Default: xGrapes

Download

  • npm i grapesjs-plugin-expose

Usage

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

<div id="gjs"></div>
<script type="text/javascript">
  var editor = grapesjs.init({
      container : '#gjs',
      plugins: ['grapesjs-plugin-expose'],
      pluginsOpts: {
        'grapesjs-plugin-expose': {
          target: 'YOUR_CUSTOM_PROPERTY' // Default: "xGrapes"
        }
      }
  });
</script>

License

MIT

About

GrapesJS plugin used to expose data from models on global scope

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages