All the JS scripts that you use are not included in the addons but in the editor's main library.
I am creating an addon that uses swiper.js, in the site.php code I am not including the getTemplate() function, so to see what to see the results you have to press the APPLY button (similar to the addon module) I think that this button is shown in all addons that do not use the getTemplate() function. I have included the scripts files, and from the public side of the site (not editor) it works fine, the problem is in the front-end editor.
The question:
why don't external JS scripts (included in addons) run inside the editor?
or what should I do to get them to run?
I have initialized swiper inside the script tag and also with the js() function, but neither works in the live editor
initialization code:
var swiper = new Swiper(".mySwiper", {});
Thanks in advance