JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / ckeditor_php5.php
index c4300d2..fda85d0 100644 (file)
@@ -1,6 +1,6 @@
 <?php\r
 /*\r
-* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 * For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -20,11 +20,11 @@ class CKEditor
        /**\r
         * The version of %CKEditor.\r
         */\r
-       const version = '3.5';\r
+       const version = '3.5.1';\r
        /**\r
         * A constant string unique for each release of %CKEditor.\r
         */\r
-       const timestamp = 'ABLC4TW';\r
+       const timestamp = 'B1CB4XQ';\r
 \r
        /**\r
         * URL to the %CKEditor installation directory (absolute or relative to document root).\r
@@ -78,7 +78,7 @@ class CKEditor
         * A string indicating the creation date of %CKEditor.\r
         * Do not change it unless you want to force browsers to not use previously cached version of %CKEditor.\r
         */\r
-       public $timestamp = "ABLC4TW";\r
+       public $timestamp = "B1CB4XQ";\r
        /**\r
         * An array that holds event listeners.\r
         */\r
@@ -491,7 +491,7 @@ class CKEditor
                }\r
                else {\r
                        /**\r
-                        * realpath — Returns canonicalized absolute pathname\r
+                        * realpath - Returns canonicalized absolute pathname\r
                         */\r
                        $realPath = realpath( './' ) ;\r
                }\r
@@ -555,6 +555,9 @@ class CKEditor
                                array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'));\r
 \r
                                $val = str_replace($jsonReplaces[0], $jsonReplaces[1], $val);\r
+                               if (strtoupper(substr($val, 0, 9)) == 'CKEDITOR.') {\r
+                                       return $val;\r
+                               }\r
 \r
                                return '"' . $val . '"';\r
                        }\r