BUG When import as module Angular 6
@nternouski I'm guessing you needed to include the gjs-preset-newsletter script in the scripts section of your build in angular.json. Any plugins you want to use need to be included here or the angular build won't know to include them.
Read full answer below ↓Question
in Version: "grapesjs": "^0.14.61", "grapesjs-preset-newsletter": "^0.2.20", i import the script as: and the context is the code: And only on build, the console print: Please Help me. Thanks for your time.
Answers (3)
@nternouski I'm guessing you needed to include the gjs-preset-newsletter script in the scripts section of your build in angular.json. Any plugins you want to use need to be included here or the angular build won't know to include them.
If you don't add it globally, you'll need to manually register the plugin with grapesjs. Then, be sure to use the ID you configured and not the variable name when initializing.
Hi @nternouski, unfortunately, that plugin still uses the old exporting, so you have to use it like this:
import grapesjs from "grapesjs";
import "grapesjs-preset-newsletter";
...
grapesjs.init({
...
plugins: ["gjs-preset-newsletter"],
...
})
Related Questions and Answers
Continue research with similar issue discussions.
Issue #519
No Blocks by default
Using this code I get an editor but there are no blocks. I also do not get the icons for the screen size but other icons are there. As you...
Issue #1505
adding row and sections not working
i am integrating grapejs with angular6. but it is not working means it is not showing on blocks i am using following code
Issue #507
uploadFile being called twice on drop file?
I have an editor initialized as so: If I add an image to the canvas and try to upload a new image by dragging it into the drop area in the...
Issue #3071
BUG: update listener triggered on initial load
Hello! I found weird bug with update listener. It's triggered on initial load if html code has <img> tag with class attribute: You can chec...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Related tutorials
In-depth guides on the same topic.
Tutorial
How to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
Tutorial
GrapesJS Inline RTE Plugins Update: CKEditor 5 v0.1.4 and Froala Inline Text Editor
CKEditor 5 Inline for GrapesJS v0.1.4 fixes Studio SDK toolbar clipping, iframe injection and link balloon bugs. Compare with Froala Inline — both $69.
Tutorial
Embed GrapesJS in Your SaaS: A Weekend Guide
Embed GrapesJS in your SaaS and ship a white-label page builder over a weekend. Honest tradeoffs, real code, and the plugins that close the UX gap.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.