# Add javascript the same way as css

**URL:** <https://community.bloomreach.com/t/add-javascript-the-same-way-as-css/4280>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [February 15, 2024, 12:02pm UTC](https://community.bloomreach.com/t/add-javascript-the-same-way-as-css/4280 "2024-02-15T12:02:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimoPot](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/timopot/32/1832_2.png) [@TimoPot](https://community.bloomreach.com/u/TimoPot)\
**Post date:** [February 15, 2024, 12:02pm UTC](https://community.bloomreach.com/t/add-javascript-the-same-way-as-css/4280/1 "2024-02-15T12:02:43Z")

</div>

It is possible to tweak the css of the cms by : [Tweak the CSS of the CMS Editing Templates - Bloomreach Experience Manager (PaaS/Self-Hosted) - The Fast and Flexible Headless CMS](https://xmdocumentation.bloomreach.com/library/concepts/editor-interface/tweak-the-css-of-the-cms.html)

I’dd like to know if it is possible to add javascript the same way to the cms?  
I think it is a nice to have.

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [February 15, 2024, 1:04pm UTC](https://community.bloomreach.com/t/add-javascript-the-same-way-as-css/4280/2 "2024-02-15T13:04:12Z")

</div>

The simple answer is, no it is not possible. Allowing js to be injected would lead to unpredictable results. Obviously there is a lot of our own js in there.

The more complicated answer is, it depends on how comfortable you are in java wicket applications. Even then you’d be doing customizations in the cms in a way that we can’t officially support because we cannot guarantee that everything else will work with your customizations.

---

<div class="post-metadata">

**Author:** ![TimoPot](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/timopot/32/1832_2.png) [@TimoPot](https://community.bloomreach.com/u/TimoPot)\
**Post date:** [February 15, 2024, 1:30pm UTC](https://community.bloomreach.com/t/add-javascript-the-same-way-as-css/4280/3 "2024-02-15T13:30:13Z")

</div>

Hi Jasper,

I’m aware of your points. But that would be our own responsibility.  
We have issue whith the UX of the content editor. And you are saying it yourself… creating your own plugins is not supported. So both ways are no options.  
Then I would like the way in which we feel comfortable. And that is adding javascript.

---

<div class="post-metadata">

**Author:** ![TimoPot](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/timopot/32/1832_2.png) [@TimoPot](https://community.bloomreach.com/u/TimoPot)\
**Post date:** [February 29, 2024, 7:34am UTC](https://community.bloomreach.com/t/add-javascript-the-same-way-as-css/4280/5 "2024-02-29T07:34:53Z")

</div>

No reaction anymore?

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [February 29, 2024, 9:33am UTC](https://community.bloomreach.com/t/add-javascript-the-same-way-as-css/4280/6 "2024-02-29T09:33:51Z")

</div>

Hi Timo,

There is no simple way to do this. You really have to write java wicket code to inject javascript in the cms. This is a topic too broad to go into detail here. You need to know java, wicket, and how the cms is put together. If you really want to do this, it is a matter of diving into these topics. Our professional services department could likely help you, though I expect they would strongly discourage it at first.
