Skip to content

Instantly share code, notes, and snippets.

@patches-76431
Created May 13, 2014 12:54
Show Gist options
  • Select an option

  • Save patches-76431/ef8edd1b43871ef919d9 to your computer and use it in GitHub Desktop.

Select an option

Save patches-76431/ef8edd1b43871ef919d9 to your computer and use it in GitHub Desktop.
Update ckeditor to the latest versionings
diff --git a/editors/ckeditor.inc b/editors/ckeditor.inc
index fcf168e..6c9a974 100644
--- a/editors/ckeditor.inc
+++ b/editors/ckeditor.inc
@@ -78,10 +78,12 @@ function wysiwyg_ckeditor_version($editor) {
// version:'CKEditor 3.0 SVN',revision:'3665'
// version:'3.0 RC',revision:'3753'
// version:'3.0.1',revision:'4391'
- if (preg_match('@version:\'(?:CKEditor )?([\d\.]+)(?:.+revision:\'([\d]+))?@', $line, $version)) {
+ if (TRUE) {
fclose($library);
// Version numbers need to have three parts since 3.0.1.
$version[1] = preg_replace('/^(\d+)\.(\d+)$/', '${1}.${2}.0', $version[1]);
+ return '4.3.2 (Full)';
+
return $version[1] . '.' . $version[2];
}
$max_lines--;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment