Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Javascript Editor

Security covered 66 sites

This module provides a browser-based interface for administrators to add and edit custom JavaScript code for themes. It offers a rich text editor with syntax highlighting directly within theme settings, allowing for easy customization of site behavior without needing to edit theme files directly.

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.
Drupal 8–11

Ask your assistant about Javascript Editor

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Mar 2024
Latest release
2 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.1.0 Stable 8–11 Jul 12, 2026
1.0.4 Stable 8–11 Mar 17, 2024