Require
Question
Please help, how can I require or import grapesjs-blocks-basic, not through <script/> tag?
Answers (3)
@goldengrisha - Can you clarify exactly what you're trying to achieve?
for example if I want to include this plugin I need to add tag like this <script src="path/to/grapesjs-plugin-export.min.js"></script> and then plugins: ['gjs-plugin-export'], can it be achieved by import or require ?
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'],
});
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1098
how to use plugins
when i import grapes-plugin-export,there is a warnning,please help me
Issue #395
How to call a function which is outside the component in script function of component.
Please help in solving the below issue. How to call a function which is outside the component in script function of component. ex: demo.myF...
Issue #1733
How to remove script tag which is added by add block manager script
Hello @artf I want to export final/production based html content excluding the script(Only which is added by block manager). Suppose i am a...
Issue #1434
Toolbar Hide text element
@artf Please check you demo page text is hiding under the toolbar. how can we update the toolbar position?
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.