# Wie verschiebe ich mein Skript richtig in den neuen JS-Tab meiner Komponente?

**URL:** <https://meta.discourse.org/t/how-to-properly-move-my-script-to-the-new-js-tab-in-my-component/377603>\
**Category:** Development\
**Tags:** composer, tags\
**Created:** [6. August 2025 um 19:23 UTC](https://meta.discourse.org/t/how-to-properly-move-my-script-to-the-new-js-tab-in-my-component/377603 "2025-08-06T19:23:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [6. August 2025 um 21:46 UTC](https://meta.discourse.org/t/how-to-properly-move-my-script-to-the-new-js-tab-in-my-component/377603/5 "2025-08-06T21:46:13Z")

</div>

Ich habe mir angesehen, wie es funktioniert, da schon eine Weile vergangen ist.

- Tag-Eingabefelder erscheinen im Editor beim Erstellen eines neuen Themas unabhängig von der ausgewählten Kategorie (selbst wenn die Kategorie keine verfügbaren Tags für andere als Administratoren hat), was ich verhindern möchte.
- Nur CSS wird nicht funktionieren, da der Editor auf jeder Seite geöffnet werden kann und es kein übergeordnetes CSS-Element gibt, das die gewünschte Kategorie adressiert und beim Verstecken der Tag-Eingabe im Editor helfen würde. Deshalb habe ich meiner Meinung nach JavaScript verwendet.

Also, es sei denn, ich übersehe etwas, benötige ich immer noch ein Skript, um mein Ziel zu erreichen.

Das ursprüngliche #contribute:feature-Thema dazu war hier:

> [@Enable tagging only in some categories](https://meta.discourse.org/t/enable-tagging-only-in-some-categories/45335?u=canapin):
>
> This is looking good @neil. One thing that would be good relating to this would be the simple option to ‘enable tags in category’ option in the category modal. In my use case I only want tags (and specific tags at that) to be able to be used in specific categories. E.g. in those categories where I don’t want tags enabled I wouldn’t want the tag input field to be shown to users. Is this doable?

Ich vermute, es gab nicht genug Interesse, damit an dieser Funktion gearbeitet wird, und #pr-welcome war hier laut Sam nicht erwünscht.

Also stecke ich mit einer benutzerdefinierten JS-Lösung fest (die ich dann noch reparieren muss 🥲).

---

_[View the full topic](https://meta.discourse.org/t/how-to-properly-move-my-script-to-the-new-js-tab-in-my-component/377603)._
