Kademi / keditor

KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents
http://kademi.github.io/keditor/
MIT License
319 stars 153 forks source link

Can't use scripts inside iframe #272

Open kartomantas opened 2 years ago

kartomantas commented 2 years ago

Describe the bug I need to use scripts inside iframe for some of my custom components. For example, carousel. I need to include this script tag: <script src="/assets/theme/js/owl.carousel.min.js"></script>

Version KEditor version 1.1.7

To Reproduce Tried to put the script right before closing tag: <div id="content-area"> Also tried to put the script right after

    <script type="text/javascript" data-keditor="script">
        $(function () {
            $('#keditor-area').keditor();
        });
    </script>

Documentation only tells how to seperate main document styles from iframe styles. No info about how to seperate main document scripts from iframe scripts.

Expected behavior I expected scripts to work in iframe but they simply won't do their thing. Same as they are never loaded.

Desktop (please complete the following information):