grapesjs-preset-webpage icon indicating copy to clipboard operation
grapesjs-preset-webpage copied to clipboard

How to use only Import Command separate?

Open viniciiusds opened this issue 6 years ago • 1 comments

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

viniciiusds avatar Jul 30 '18 14:07 viniciiusds

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

vinstah avatar Aug 23 '18 21:08 vinstah