Check CKEditor Version in JavaScript
How to Check CKEditor Version in JavaScript
You can check the CKEditor version in JavaScript by accessing the CKEDITOR object and reading its version property. Here’s how you can do it:
// Assuming CKEDITOR is already loaded
if (typeof CKEDITOR !== 'undefined') {
var ckeditorVersion = CKEDITOR.version;
console.log('CKEditor Version:', ckeditorVersion);
} else {
console.log('CKEditor not found');
}
Make sure you have CKEditor loaded on your webpage before using this code. This code snippet checks if the CKEDITOR object is defined and then retrieves the version using the CKEDITOR.version property. Make sure to check if CKEDITOR is defined & already loaded before attempting to access its properties to avoid errors when CKEditor is not loaded on the page.
