Drupal is a registered trademark of Dries Buytaert
drupal 11.4.2 Update released for Drupal core (11.4.2)! drupal 11.4.1 Update released for Drupal core (11.4.1)! drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)!

This module allows administrators to customize a theme's JS through the browser, using a rich text editor with syntax highlighting.

On the settings page of each theme it will be displayed a textarea where the admin can type custom Javascript code.
The feature can be enabled to multiple themes on the same site.

This module is compatible with Drupal 8 and 9.

Installation

Install this module via composer by running the following command:

composer require drupal/js_editor

Basic usage

  1. Install the module
  2. Go to /admin/appearance
  3. Edit an Installed theme
  4. At the bottom of te page activate the checkbox "Enable or disable custom JS"
  5. Enter your custom Javascript code
  6. Save the configuration

Similar Modules

  • Asset Injector: has the same functionality.
    • Advantage: Javascript Editor configuration is available in the theme settings.
  • CSS Editor: allows site builders to customize a theme's CSS through the browser.

Activity

Total releases
1
First release
Jul 2026
Latest release
9 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.1.0 Stable Jul 12, 2026