Layers Manager doesn't work with several editors
Question
Hi again! As I comment in a previous question, We're working with several editors in the same window. The issue we're facing now is that layer manager doesn't work fine when I go from one editor to another. These are the steps that make this problem happens:
- Editors initiated
- Go to Layer Manager inside editor 1 (click on layers icon) - everything ok

- Open editor 2 and click on layers icon - looks like this:

I saw that the library is adding the prefix "gjs-" on components that already have this prefix:

To fix it provisionaly, I changed this line inside javascript code "config.layers.stylePrefix = config.stylePrefix + lyStylePfx;" to "if (lyStylePfx.substring(0,4) != "gjs-") config.layers.stylePrefix = config.stylePrefix + lyStylePfx;". With this now it's working fine, but there may be a better solution.
Please, let me know if there is another way. Thanks!
Answers (2)
Thanks Kevin, I've found the issue and the fix will be available in the next 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 #765
editor.on('block:drag:stop') event doesn't work
I am using this event many times in the application in the previous library. Now I have updated the library. I have updated the following l...
Issue #1639
[Question]: Would it be possible to have change settings under style manager in a way that it has href when a link is created?
I'm using preset newsletter with built-in RTE (do not want to use ck editor like the demo) In order to make any text to link, i need to cli...
Issue #661
Class attribute not removed
Hello ! I noticed a problem with style manager when we add/remove classes. When we remove all classes it doesn't remove then from the gener...
Issue #773
Multiple editors in the same window
Hi all! I'm trying to initiate several editors in the same window. I think almost everything is working great (edition, saving, adding comp...
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.