Issue #773Opened January 18, 2018by kevinalvarez0 reactions

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(); });

2018-01-17_17-52-56

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)

artfJanuary 18, 20180 reactions

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

kevinalvarezJanuary 18, 20180 reactions

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

lock[bot]September 18, 20190 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.