I did see a patch for this here https://www.drupal.org/node/1853550
But that didn't work for me when applied.
I also found this fix https://www.drupal.org/node/1161738#comment-9091867 and it did work, but I'm not sure if this is a bug on WYSIWYG module that should be fixed or if it is a bug on ckeditor.js??
Is there another wysiwyg patch I should be applying, or should I just edit ckeditor.js and be done with it?
Thanks!

Comments

TwoD’s picture

Status: Active » Closed (duplicate)

Don't do either of those things. CKEditor changed a lot since Wysiwyg 7.x-2.2 was released. Several fixes have been applied to the 7.x-2.x branch (the 7.x-2.x-dev snapshots) since. Like #1853550: Ckeditor 4.0 - The version of CKEditor could not be detected. says, those changes will be part of the next release. Until then, 7.x-2.x-dev is the only supported option.

kpm’s picture

Ok, thanks for the clarification TwoD. Moved to wysiwyg 7.x-2.x-dev.

Bigsipper’s picture

I just downloaded and installed drupal 7.32 https://www.drupal.org/drupal-7.32-release-notes and noticed there is no fix to this 'The version of CKEditor could not be detected' issue.

So...what is the correct fix for v7.32??? Should I re-install 7.x-dev https://www.drupal.org/node/156281 and if I do, will it have the security patch that was released with 7.32?

Help...

IamPZ’s picture

I've found that this fix still works with the latest WYSIWYG and CKEditor versions.... http://www.webopius.com/content/717/how-to-get-ckeditor-4-x-working-with...

Anonymous’s picture

Thank you for sharing that link, IamPZ!! Totally helped

vrwired’s picture

I can cautiously confirm this just worked for me on a vanilla install of drupal though have noticed banter around this issue on other discussions that indicate this may cause issues with updates on future releases.

TwoD’s picture

Yes, it will. Use 7.x-2.x-dev to be safe.

Road Kill’s picture

I can confirm that this is still an issue two years later. It should have been fixed. I am reverting to a older working version.

TwoD’s picture

No it's not. The Supported editor versions page clearly states 7.x-2.2 only supports CKEditor 3. If you want CKEditor 4, use 7.x-2.x-dev for now.

kashif.u’s picture



The Fix

Edit ‘\sites\all\modules\wysiwyg\editors\ckeditor.inc’ and at about line 82, replace this line:

if (preg_match('@version:\<strong>'</strong>(?:CKEditor )?([\d\.]+)(?:.+revision:\<strong>'</strong>([\d]+))?@', $line, $version)) {

With this (just replace the two ‘s with “)

if (preg_match('@version:\<strong>"</strong>(?:CKEditor )?([\d\.]+)(?:.+revision:\<strong>"</strong>([\d]+))?@', $line, $version)) {