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

How to prevent strip out js embed codes? #472

Open
AmitSenjaliya opened this issue Aug 30, 2023 · 0 comments
Open

How to prevent strip out js embed codes? #472

AmitSenjaliya opened this issue Aug 30, 2023 · 0 comments
Labels

Comments

@AmitSenjaliya
Copy link

Description

I want to add <script> tags on the redactor field. When the admin adds content they can able to add content with some of the script.
But when I tried to add a script tag it would automatically removed from the editor. So what should I do to not remove the <script> tag?

Steps to reproduce

  1. Open the page editor from the admin panel.
  2. Go edit some content using the redactor field.
  3. Open HTML code edit mode in the redactor field and add content with script tags.
  4. But It gets stripped when switching HTML mode to visual.

Additional info

  • Craft version: 3.8.16
  • PHP version: 7.4.19
  • Database driver & version: MySQL 5.7.33
  • Plugins & versions: 2.10.12
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