Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use scripts inside iframe #272

Open
kartomantas opened this issue Nov 8, 2022 · 0 comments
Open

Can't use scripts inside iframe #272

kartomantas opened this issue Nov 8, 2022 · 0 comments
Labels

Comments

@kartomantas
Copy link

kartomantas commented Nov 8, 2022

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):

  • OS: Windows
  • Browser: Chrome
  • Version: 107.0.5304.88 (Official Build) (64-bit)
@kartomantas kartomantas added the bug label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant