Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
In ckeditor.inc there is this line:
if (preg_match('@version:\'(?:CKEditor )?([\d\.]+)(?:.+revision:\'([\d]+))?@', $line, $version)) {
However, in the ckeditor.js file that comes with CKEditor the version looks like this:
version:"4.4.1",revision:"568b5ed"
i.e. the code is only searching for single quotes. Fixed by:
if (preg_match('@version:[\'\"](?:CKEditor )?([\d\.]+)(?:.+revision:[\'\"]([\d]+))?@', $line, $version)) {
Comments
Comment #1
VM CreditAttribution: VM commentedchanged title to something more descriptive
bug reports are filed against -dev
Comment #2
TwoDThis was fixed long ago in 7.x-2.x-dev.
Comment #3
asleep79 CreditAttribution: asleep79 commentedWhere can I find a download of the fixed version? When I get the tar or zip from (https://drupal.org/project/wysiwyg) for WYSIWYG it still has the same issue with a freshly downloaded copy of CKEditor 4.4.1. Please advise.
Thank you.
edit: nevermind ... downloaded the dev version (small detail from the reply above) and that works fine. thank you.
Comment #4
TwoDOnly the -dev snapshots have had the patches applied to them so far, they'll be part of the next full release.
FYI, the changes mentioned here only makes Wysiwyg recognize CKEditor 4, they do not compensate for the differences from CKEditor 3 so some settings will not work as expected.