Installation and setup
Adding CKEditor 4 LTS module to Drupal 9/10
CKEditor 4 reached its end-of-life. If you are interested in extended support for CKEditor4, please visit: https://ckeditor.com/ckeditor-4-support/
This project is a copy of https://www.drupal.org/project/ckeditor a with an upgraded CKEditor library to the LTS version. It shares the same namespaces and machine names.
If you already use CKEditor, this module will override the existing one with the LTS build of CKEditor 4.
Installation:
If you have not used the ckeditor module before, simply download the ckeditor_lts module and enable it, then go to /admin/config/ckeditor-lts/settings, and enter your license key.
If you use Drupal 9 or have already installed https://www.drupal.org/project/ckeditor you can enable this module in two ways.
First method
- Download
ckeditor_ltsinto your project and make sure to clear an APCu cache or any alternative you use.
In the case of APCu, you can visit/admin/config/ckeditor-lts/settingsand click the clear cache button under advanced settings. - Go to
/admin/config/ckeditor-lts/settingsand enter your license key

Second method
- Export all configs related to editor and text formats.
- Uninstall CKEditor module and make sure that
ckeditordirectory is deleted from the project files. - Add
ckeditor_ltsmodule to your project and enable it. - Import all configs related to editor and text formats
- Go to
/admin/config/ckeditor-lts/settingsand enter your license key.
Uninstallation
In case you don’t want to go back to the non-LTS version of CKEditor 4 and completely remove the module (for example in case of migration to CKEditor 5) uninstall the module as any other module. Otherwise please follow instructions below:
- Make sure that the old CKEeditor module is present in contrib modules directory.
- Remove the ckeditor_lts module from files or run
composer remove drupal/ckeditor_lts - Clear APCu (or any alternative you use) cache manually or using Drupal rebuild (instruction below)
Clearing APCu/WinCache using Drupal rebuild
APCu can be cleared with Drupal. In order to achieve this, access to the server's console is required.
- Access the site’s server console
- Run a shell script located in
{DRUPAL_ROOT}/web/core/scripts/rebuild_token_calculator.sh. The output will contain the timestamp and token query parameters. Copy the whole string. - In a browser window go to
/rebuild.php?{COPIED_VALUE}
The user cache will be cleared. It is necessary to clear the cache if you already had the old CKEditor module installed.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion