Skip to content

How to prevent strip out js embed codes? #472

@AmitSenjaliya

Description

@AmitSenjaliya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions