GrapesJS / preset-webpage

GrapesJS Plugin Webpage Preset
http://grapesjs.com/demo.html
BSD 3-Clause "New" or "Revised" License
335 stars 291 forks source link

How to use only Import Command separate? #12

Closed viniciiusds closed 2 years ago

viniciiusds commented 6 years ago

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

vinstah commented 6 years ago

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