GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.38k stars 4.06k forks source link

Require #762

Closed goldengrisha closed 6 years ago

goldengrisha commented 6 years ago

Please help, how can I require or import grapesjs-blocks-basic, not through and then plugins: ['gjs-plugin-export'], can it be achieved by import or require ?

artf commented 6 years ago

You mean something like this?!?

import grapesjs from 'grapesjs';
import 'grapesjs-blocks-basic'; // <-- autoloads inside grapesjs instance

const editor = grapesjs.init({
    // ...
    plugins: ['gjs-blocks-basic'],
});
goldengrisha commented 6 years ago

thanks, found a problem)

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.