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

Inserting <script> into source code #63

Open
dmayzhanov opened this issue Jul 29, 2021 · 2 comments
Open

Inserting <script> into source code #63

dmayzhanov opened this issue Jul 29, 2021 · 2 comments

Comments

@dmayzhanov
Copy link

dmayzhanov commented Jul 29, 2021

Hi, @emilianotisato

When saving source code with embedded <script>, an error appears in the console. A screenshot is attached.
The config contains the settings 'extended_valid_elements' => 'a [id | class | href | target | title | uk-toggle], script [src | async | defer | type | charset | class]'

dmayzhanov print screen 025

@emilianotisato
Copy link
Owner

Hi @dmayzhanov , can you please add steps to reproduce this error?
Thanks

@dmayzhanov
Copy link
Author

Hi @emilianotisato,

  1. Open the source code of the article in the editor
  2. Add any script there. You can even empty "<script> </script>"
  3. Click on the save button and get the error "Cannot read properties of undefined (reading 'indexOf')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants