# Custom code not showing in editor

**URL:** <https://community.weweb.io/t/custom-code-not-showing-in-editor/1090>\
**Category:** Ask us anything\
**Created:** [September 5, 2022, 7:30am UTC](https://community.weweb.io/t/custom-code-not-showing-in-editor/1090 "2022-09-05T07:30:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stagiaire](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/stagiaire/32/1199_2.png) [@stagiaire](https://community.weweb.io/u/stagiaire)\
**Post date:** [September 5, 2022, 7:30am UTC](https://community.weweb.io/t/custom-code-not-showing-in-editor/1090/1 "2022-09-05T07:30:08Z")

</div>

Hi,

I was wondering if there were a reason why the custom code we write in specific pages do not show up in the editor, is this gonna change in the futur or will it stay like this forever ?  
This can be annoying if we are using custom global css for example.

---

<div class="post-metadata">

**Author:** ![unlustucru](https://avatars.discourse-cdn.com/v4/letter/u/e36b37/32.png) [@unlustucru](https://community.weweb.io/u/unlustucru)\
**Post date:** [January 28, 2024, 10:21am UTC](https://community.weweb.io/t/custom-code-not-showing-in-editor/1090/2 "2024-01-28T10:21:10Z")

</div>

I’m interested in this as well.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [January 28, 2024, 11:45am UTC](https://community.weweb.io/t/custom-code-not-showing-in-editor/1090/3 "2024-01-28T11:45:21Z")

</div>

It’s by the nature of the editor. WeWeb as far as I know works as an iFrame in the editor, or something like that, so the code you paste in the editor doesn’t inherently apply to he page (the iframe). Works on the published site though.

You can workaround this by

1. Embedding the custom JS with a workflow custom js action
2. Place a HTML block and do your CSS there

To make JS possible in the editor, there is the NPM plugin.

---

<div class="post-metadata">

**Author:** ![raydeck](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raydeck/32/384_2.png) [@raydeck](https://community.weweb.io/u/raydeck)\
**Post date:** [January 28, 2024, 1:03pm UTC](https://community.weweb.io/t/custom-code-not-showing-in-editor/1090/4 "2024-01-28T13:03:02Z")

</div>

You can also embed custom script tags in the page load event using the free [weweb-embed tool](https://weweb-embed.statechange.ai) that we made over at State Change. We made this specifically for this purpose - access in the editor along with the published site.
