Currently if you have 3.4.1, Drupal.ckeditorCompareVersion('3.3.2') returns false.

The code:

  for (var x in ckver) {
    if (ckver[x]<version[x]) {
      return false;
    }
  }
  return true;

should be changed to:

  for (var x in ckver) {
    if (ckver[x]<version[x]) {
      return false;
    }
    elseif (ckver[x]>version[x]) {
      return true;
    }
  }
  return true;

This is a potential bug, as it only used in the config file to compare against 3.1 version.

Comments

dczepierga’s picture

Status: Active » Fixed

Really thx for your attention.

I commit changes to D6 and D7 version of CKEditor module.

Greetings

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.