This module integrates the CodeMirror JavaScript library into Drupal, providing a text editor for formatted content, a field widget and formatter for text fields, and a text filter for syntax highlighting. It also offers an API to enable the CodeMirror editor for any textarea.
This module integrates the CodeMirror editor library into Drupal.
At the moment it offers the following features:
- Text editor for formatted texts
- Field widget for text fields
- Field formatter for text fields
- Text filter for syntax highlighting
- API to enable CodeMirror editor for arbitrary textareas
Drupal 10–11
Ask your assistant about The CodeMirror 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
- JS Cookie
- editor Drupal core
Required by
6 tracked projects depend on this one
- Twig Field 577 sites
- Library Manager 200 sites
- Snippet Manager 109 sites
- Component Library 95 sites
- Entity Display Template (Override by UI) 11 sites
- Field Inline Template 2 sites
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.4 | Stable | 10–11 | Dec 8, 2025 | ||
| 2.0.3 | Stable | 10–11 | PHP >=7.1 | Aug 30, 2024 | |
| 2.0.2 | Stable | 10–11 | PHP >=7.1 | Aug 26, 2024 | |
| 2.0.1 | Stable | 10–11 | PHP >=7.1 | Aug 26, 2024 | |
| 2.0.0 | Stable | 10–11 | PHP >=7.1 | Aug 26, 2024 | |
| 2.x-dev | Dev | 10–11 | PHP >=7.1 | Aug 26, 2024 | |
| 8.x-1.10 | Stable | 9–10 | PHP >=7.1 | Aug 26, 2024 | |
| 8.x-1.9 | Stable | 9–10 | PHP >=7.1 | Mar 4, 2023 |