Multiple editors in the same window
Question
Hi all! I'm trying to initiate several editors in the same window. I think almost everything is working great (edition, saving, adding components, etc), but when I open "view code" modal, I see css duplicated. Doing a little research, I noted that inside method loadModule, there's a line "if (Mod.onLoad) this.get('toLoad').push(Mod);" where "toLoad" attribute is adding all the modules from every editor initated. These modules are used later to add the styles inside css code. this.get('toLoad').forEach(function (module) { module.onLoad(); });

Is there a way to get over this problem? Now, I'm setting the style (editor.setStyle(xxx)) again once all the editors are initiated (and it's working fine, but I think there might be a better solution)
I appreciate any idea.
Thanks!
Answers (3)
Thanks @kevinalvarez probably I got where the issue is, I'm gonna push a fix soon.
Thanks @artf ! I made the change and now it's working as expected. We will wait for the release.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1863
Adding new components to Block Manager
I'm trying to add multiple components which are in my canvas into the block manager but I believe because of an id issue they're not visibl...
Issue #860
Can't bootstrap GrapesJS + Material Design Lite integration
So i'm trying to bootstrap this integration and i think MDL framework doesn't run, because JS components are not initialized at all Here is...
Issue #1113
[QUESTIONS] New trait type is not working with rendered components?
Hello, thanks for the great framework. I'm trying to apply this to my project. I want to add a new trait for existing LINK '<a>' component....
Issue #1179
[Question] Cannot load styles saved as !important
Hi! I'm trying to make all the user-set styles have the "!important" flag, in order to prevent some other previous existent classes to over...
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.