[Skip to main content](#vessel-content)

#   JavaScript and CSS Codes Removed After Hikashop Update

##

- **[negindasht](/forum/user/82841-negindasht "View negindasht's Profile")**
- [![negindasht's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/82841-negindasht "View negindasht's Profile") Topic Author
- [ Offline](/forum/user/82841-negindasht)

Less More

- Posts: 1
- Thank you received: 0
-
-

2 years 1 month ago [\#363982](#363982) by [negindasht](/forum/user/82841-negindasht "View negindasht's Profile")  *[JavaScript and CSS Codes Removed After Hikashop Update](/forum/32-content-creation/908776-javascript-and-css-codes-removed-after-hikashop-update#363982 "-- HikaShop version -- : 5.1.1 -- Joomla version -- : 4 -- PHP version -- : 8.1  I recently updated Hikashop to the latest version and have encountered an issue with the content editor. When I insert JavaScript or CSS codes in the Hikashop content editor (such as for product descriptions or custom scripts), the codes are completely removed after saving.  Key details of the issue:  This problem only occurs within the Hikashop content editor. The issue does not happen in other parts of Joomla (e.g., articles), where the codes are saved correctly. I have tried multiple editors (like JCE, TinyMCE, etc.), but the problem persists with all of them. There was no such issue in the previous version of Hikashop, and it seems to have appeared after the update. Joomla's text filters (Text Filters) for my user group are set to &quot;No Filtering.&quot; Could you please advise on how to resolve this issue? Is it related to new security settings in the updated version? Any guidance would be greatly appreciated.  Thank you in advance for your help.")* was created by *[negindasht](/forum/user/82841-negindasht "View negindasht's Profile")*

-- HikaShop version -- : 5.1.1
-- Joomla version -- : 4
-- PHP version -- : 8.1

I recently updated Hikashop to the latest version and have encountered an issue with the content editor. When I insert JavaScript or CSS codes in the Hikashop content editor (such as for product descriptions or custom scripts), the codes are completely removed after saving.

Key details of the issue:

This problem only occurs within the Hikashop content editor. The issue does not happen in other parts of Joomla (e.g., articles), where the codes are saved correctly.
I have tried multiple editors (like JCE, TinyMCE, etc.), but the problem persists with all of them.
There was no such issue in the previous version of Hikashop, and it seems to have appeared after the update.
Joomla's text filters (Text Filters) for my user group are set to "No Filtering."
Could you please advise on how to resolve this issue? Is it related to new security settings in the updated version? Any guidance would be greatly appreciated.

Thank you in advance for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA4Nzc2LWphdmFzY3JpcHQtYW5kLWNzcy1jb2Rlcy1yZW1vdmVkLWFmdGVyLWhpa2FzaG9wLXVwZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 1 month ago -  2 years 1 month ago [\#363989](#363989) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[JavaScript and CSS Codes Removed After Hikashop Update](/forum/32-content-creation/908776-javascript-and-css-codes-removed-after-hikashop-update#363989 "-- HikaShop version -- : 5.1.1 -- Joomla version -- : 4 -- PHP version -- : 8.1  I recently updated Hikashop to the latest version and have encountered an issue with the content editor. When I insert JavaScript or CSS codes in the Hikashop content editor (such as for product descriptions or custom scripts), the codes are completely removed after saving.  Key details of the issue:  This problem only occurs within the Hikashop content editor. The issue does not happen in other parts of Joomla (e.g., articles), where the codes are saved correctly. I have tried multiple editors (like JCE, TinyMCE, etc.), but the problem persists with all of them. There was no such issue in the previous version of Hikashop, and it seems to have appeared after the update. Joomla's text filters (Text Filters) for my user group are set to &quot;No Filtering.&quot; Could you please advise on how to resolve this issue? Is it related to new security settings in the updated version? Any guidance would be greatly appreciated.  Thank you in advance for your help.")*

Hi,

Allowing the saving of the javascript and CSS from the editor means that if someone has access to your backend, they can inject code via the editor, which, if displayed by you with your super admin account could allow the elevation of their user account's priviledges to become super admin and take control over your website.

HikaShop was allowing this by default before the 5.1.1 as the risk for this to happen is quite low since it already requires backend access. However, we reinforced the default security to not allow this by default with the 5.1.1. Now, if you want to allow for this, you need to turn off the "Filter HTML in description" setting of the HikaShop configuration.

Last edit: 2 years 1 month ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA4Nzc2LWphdmFzY3JpcHQtYW5kLWNzcy1jb2Rlcy1yZW1vdmVkLWFmdGVyLWhpa2FzaG9wLXVwZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
