Loading...

Upgrading Drupal core to the latest version of 10.x

Use the following steps to update the text format to use CKEditor 5, remove the old CKEditor, and upgrade your Drupal core version to the latest version.

  1. Switch from CKEditor 4 to CKEditor 5.
    1. Install the CKEditor 5 module with the following command:

      ./vendor/bin/drush en ckeditor5
    2. Click Configuration > Content authoring > Text formats and editors.

      Alternatively, append /admin/config/content/formats to your application name.

    3. Update each text format, such as Filtered HTML and Full HTML, to use CKEditor 5.

      For more information, see Using the CKEditor5 text editor for the “Site Studio” text format.

    4. Uninstall any previous version of the CKEditor module.

      ./vendor/bin/drush pmu ckeditor
      
      ./vendor/bin/drush cex
    5. Commit all changes, deploy them to your development environment, and run the following commands:

      ./vendor/bin/drush cr
      
      ./vendor/bin/drush cim --yes
      
      ./vendor/bin/drush updb --yes
    6. Verify that the site in your development environment works as expected.
  2. Upgrade your Drupal core version.
    1. Remove incompatible and insignificant modules.

      composer remove drupal/upgrade_status
      
      Composer remove acquia/http-hmac-php
    2. Add the HAL module to the codebase because it is removed from Drupal core 10.

      composer require 'drupal/hal:^2.0'  --no-update --no-install
    3. Add the latest version of core and contrib module.

      You can remove modules that are not used in the project. For example, Webform and Google Analytics.

      composer require "drupal/core-composer-scaffold:^10" "drupal/core-recommended:^10" drupal/webform:^6 drupal/google_analytics:^4 drush/drush:^12 --no-update --no-install
    4. Install the latest Drupal core and its required dependencies with the following command:

      composer update -W
    5. Perform post upgrade activities.

      ./vendor/bin/drush cr
      ./vendor/bin/drush updb -y
      
      ./vendor/bin/drush cex
      ./vendor/bin/drush coh:import
      
      ./vendor/bin/drush coh:rebuild
    6. Commit all the changes, deploy them to your development environment, and run the following commands:

      ./vendor/bin/drush cr
      
      ./vendor/bin/drush cim --yes
      
      ./vendor/bin/drush updb --yes
    7. Verify that the site in your development environment works as expected.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation