diff --git a/core/modules/ckeditor/ckeditor.module b/core/modules/ckeditor/ckeditor.module index 600276e..f166d94 100644 --- a/core/modules/ckeditor/ckeditor.module +++ b/core/modules/ckeditor/ckeditor.module @@ -108,7 +108,7 @@ function _ckeditor_theme_css($theme = NULL) { */ function ckeditor_library_info_alter(&$libraries, $extension) { // Pass Drupal's JS cache-busting string via settings along to CKEditor. - // http://docs.ckeditor.com/#!/api/CKEDITOR-property-timestamp + // @see http://docs.ckeditor.com/#!/api/CKEDITOR-property-timestamp if ($extension === 'ckeditor' && isset($libraries['drupal.ckeditor'])) { $query_string = \Drupal::state()->get('system.css_js_query_string') ?: '0'; $libraries['drupal.ckeditor']['drupalSettings']['ckeditor']['timestamp'] = $query_string; diff --git a/core/modules/ckeditor/js/ckeditor.js b/core/modules/ckeditor/js/ckeditor.js index 60725a6..497393f 100644 --- a/core/modules/ckeditor/js/ckeditor.js +++ b/core/modules/ckeditor/js/ckeditor.js @@ -273,7 +273,7 @@ } }); - // Manually set the cache-busting string to the same value as Drupal. + // Set the CKEditor cache-busting string to the same value as Drupal. CKEDITOR.timestamp = drupalSettings.ckeditor.timestamp; })(Drupal, Drupal.debounce, CKEDITOR, jQuery); diff --git a/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php b/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php index fd566d0..9aa2ce2 100644 --- a/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php +++ b/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php @@ -154,7 +154,7 @@ function testLoading() { $settings = $this->getDrupalSettings(); $expected = $settings['ckeditor']['timestamp']; $this->assertIdentical($expected, \Drupal::state()->get('system.css_js_query_string'), "CKEditor scripts cache-busting string is correct before flushing all caches."); - // Remove all caches then make sure that $settings['ckeditor']['timestamp'] + // Flush all caches then make sure that $settings['ckeditor']['timestamp'] // still matches. drupal_flush_all_caches(); $this->assertIdentical($expected, \Drupal::state()->get('system.css_js_query_string'), "CKEditor scripts cache-busting string is correct after flushing all caches.");