cancel
Showing results for 
Search instead for 
Did you mean: 

Tiny MCE4 Allow <script> tag

Tiny MCE4 Allow <script> tag

Hi Magento 2 experts,

 

Is there any way I can let Tiny MCE4 allow script tags.

 

At the moment, when I add any script inside the editor then switch to the editor with "Show/Hide Editor" and Save. The script tags or style tags will be removed.

 

I have added inside of extended_valid_elements: "

script[src|async|defer|type|charset]".
/vendor/magento/module-backend/view/adminhtml/templates/widget/form/element.phtml.
 
but nothing applied.
 
Kind Regards
1 REPLY 1

Re: Tiny MCE4 Allow <script> tag

Hi,

 

Does any one have any idea on how to do this.