Open eschiebel opened 5 months ago
The readme says
import grapesjs from 'grapesjs'; import plugin from 'grapesjs-preset-webpage'; const editor = grapesjs.init({ container : '#gjs', // ... plugins: [plugin], pluginsOpts: { [plugin]: { /* options */ } } // or plugins: [ editor => plugin(editor, { /* options */ }), ], });
but import grapesjs from 'grapesjs' does not import anything. I can work around this by using const grapesjs = require('grapesjs'), but that's not ideal in a es6 environment.
import grapesjs from 'grapesjs'
const grapesjs = require('grapesjs')
Maybe this issue belongs in the grapesjs repo.
The readme says
but
import grapesjs from 'grapesjs'
does not import anything. I can work around this by usingconst grapesjs = require('grapesjs')
, but that's not ideal in a es6 environment.Maybe this issue belongs in the grapesjs repo.