This instruction assumes that you are upgrading the CKEditor module [M] and CKEditor (the editor) [E] at the same time. Instructions specific for module upgrades are tagged with [M]. Steps that must be taken when upgrading CKEditor (the editor) are marked with [E].
- [M] Download the latest version of the CKEditor module from http://drupal.org/project/ckeditor (it is advised to read the release notes before going further).
- [E] Download the latest version of CKEditor from http://ckeditor.com/download (it is advised to read the "What's New" page before going further).
- [M] Back up your database.
- [EM] Place the site in the "Off-line" mode to let the database updates run without interruption and to avoid displaying errors to end users of the site.
- [E] If you are using CKFinder, make sure you do not delete it, and move it to a safe place.
- [E] If you introduced any changes (e.g. custom toolbar definitions etc.) in the
sites/all/modules/ckeditor/ckeditor.config.js
file (orsites/all/modules/ckeditor/ckeditor/config.js
), write down your changes and add them again after uploading new files.- In general, try to avoid making any changes to CKEditor's
config.js/<code> file and add everything to <code>ckeditor.config.js
.
- In general, try to avoid making any changes to CKEditor's
- Delete old files:
- [EM] Simply remove the
modules/ckeditor
directory if upgrading both the editor and the module. - [M] If you are upgrading the module only, remember to leave the
modules/ckeditor/ckeditor
directory intact. - [E] When upgrading the editor, remove the contents of the
modules/ckeditor/ckeditor
directory only. - WARNING
- If you do not remove old files and just rename the
ckeditor
directory instead (e.g. tockeditor_old
), Drupal may use the module from the renamedckeditor_old
directory.
- [EM] Simply remove the
- [M] Upload the CKEditor module (extracted files and folders) to the
sites/all/modules
directory. - [E] Upload standalone CKEditor (extracted files and folders from the
ckeditor
directory) to thesites/modules/ckeditor/ckeditor
directory (i.e. where theCOPY HERE.txt
file exists). - [E] Restore the CKFinder files from where you copied them (see step 5).
- [E] Apply your modifications to default configuration in the
ckeditor.config.js
file (see step 6). - [M] Run
update.php
. - [EM] Put the site back online.