grapesjs-preset-webpage
grapesjs-preset-webpage copied to clipboard
How to use only Import Command separate?
I need only the Import command, without the rest of the functionality of gjs-preset-webpage. But I can not do that. How to make? Because I'm using gjs-blocks-basic modified as needed
if you are using in a node environment use import openImport from 'grapesjs/src/commands/openImport';
and add to your editor.commands: {}
object
otherwise, I suggest you look at src/commands/openImport.js and create your own import to suit then add to editor.commands: {}
without this plugin