Please note that CKEditor 4 reached its End of Life (EOL) in June 2023. From then on, it receives no more updates, new features, bug fixes, and most importantly, security patches. If you have an active CKEditor 4 subscription and need help, you can contact our support team. If you are not ready to migrate yet, for a limited time we are offering a paid Extended Support Model that will protect you against security vulnerabilities and/or breaking third-party API changes. |
There are many ways to automatically save editor changes. You can do the following:
- On editor blur use the editor#blur event.
- Once every N seconds use editor.checkDirty() and resetDirty() to verify whether changes have been made.
- When a user types, use the editor#change event, however, it's not recommended to make AJAX calls on every #change event as it may happen too often. The event must be debounced e.g., by using the eventsBuffer method.
You can also search our add-ons repository for a plugin that allows for saving and restoring content automatically.