Issue #773💬 AnsweredOpened January 18, 2018by kevinalvarez0 reactions

Multiple editors in the same window

Quick answerby artf

Thanks @kevinalvarez probably I got where the issue is, I'm gonna push a fix soon.

Read full answer below ↓

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 s...

Answers (3)

artfJanuary 18, 2018

Thanks @kevinalvarez probably I got where the issue is, I'm gonna push a fix soon.

kevinalvarezJanuary 18, 2018

Thanks @artf ! I made the change and now it's working as expected. We will wait for the release.

lock[bot]September 18, 2019

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

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.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.