Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Feb 2011 at 06:52 UTC
Updated:
21 Sep 2014 at 10:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dczepierga commentedOk i found bug during install and detecting of CKEditor plugin path. I fix it and commit to CVS.
Please check the latest dev release and let me know if you notice any problems with it. Remember to clear Drupal cache and browsers cache before testing.
After copy new CKEditor module pls make update, then your config will be fixed.
Greetings
Comment #3
kerrycurtain commentedCKEditor version could not be determined
I have had this message in the status report ever since installing ckeditor about 2 months ago. The wysiwyg seems to work as expected but from time to time something weird will occur. I am wondering if these things are related to the unfound version.
I have worked many hours troubleshooting and testing with no luck. Can someone please advise how to fix this or whether it is actually ok to accept this error message and move on.
Running version latest dev version of CKeditor for wysiwyg & 3.6.6 ckeditor
installed sites/all/modules/ckeditor/ckeditor
Pls note if I put ckeditor into sites/all/libraries the wysiwyg does not show up.
Screenshot of status report attached.
Thanks in advance.
Comment #4
kerrycurtain commentedHappy to say problem solved. Simple as having an incorrect local path to CKeditor in Global profile. left it blank and all probs solved -
in less than 24hrs - I am finally improving:)
Hope this helps someone else.
Comment #5
carlhinton commentedThe Drupal 7 WYSIWYG module allows you to choose an editor that's best for you including the renamed FCKEditor, now called CKEditor.
However, for those of you using CKEditor 4.0 or higher, you might see the following error message after you've downloaded CKEditor into your sites/all/libraries directory:
"The version of CKEditor could not be detected."
This issue is caused because the WYSIWYG editor reads the CKEditor.js file and does a pattern match looking for the version number. In older CKEditor releases, this string looked like this:
version:'3.0.1´,revision:'4391´
In newer versions, it's changed very slightly to this:
version:"4.0´´,revision:"769d96134b"
Notice the change from single to double quotes?
This stops WYSIWYG detecting the version, hence the error.
The Fix
Edit '\sites\all\modules\wysiwyg\ckeditor.inc' and at about line 83, replace this line:
1
if (preg_match('@version:\'(?:CKEditor )?([\d\.]+)(?:.+revision:\'([\d]+))?@', $line, $version)) {
With this (just replace the two 's with ")
1
if (preg_match('@version:\"(?:CKEditor )?([\d\.]+)(?:.+revision:\"([\d]+))?@', $line, $version)) {
All will now be ok
- This needs a patch - and the patch is found here https://drupal.org/node/1853550
Comment #6
Skandabhatt commentedjust download "CKEditor 3.6.6.2.7696", not the recent version.
Worked well for me