Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
ckeditor.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Mar 2016 at 22:30 UTC
Updated:
8 Apr 2016 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dave reidComment #3
wim leersNice! I never even thought about this, nor has it come up at all in the past few years. Even better integration between Drupal 8 and CKEditor.
Thank you very much! :)
Manually tested, works perfectly. Ideally this would get test coverage, but I'm not sure it's worth it in this case.
Let's link to http://docs.ckeditor.com/#!/api/CKEDITOR-property-timestamp
I prefer strict equality.
In Drupal 8, the fact that
core/ckeditornow has a dependency oncore/drupalSettingsmeans thatdrupalSettingsare *guaranteed* to be loaded beforecore/modules/ckeditor/js/ckeditor.js. Hence this does not need to happen in a Drupal behavior.So then it becomes just:
Comment #5
wim leersComment #6
wim leersActually, this should be quite straightforward to test:
$this->drupalGetSettings()that the setting sent with the page matches the current query stringdrupal_flush_all_caches()Comment #7
wim leersComment #8
thpoul commentedHere is a first test.
Comment #9
wim leersThanks, looks great! Just one question (besides the nits below): could you upload a test-only patch to show that the test indeed fails without the actual changes?
Missing
@see.s/Manually set the/Set the CKEditor/
s/Remove/Flush/
Comment #10
thpoul commentedHere is the test only patch, which should fail the test.
Comment #11
thpoul commentedAnd here are the nits :) Thank you for the review Wim!
Comment #13
wim leersLooks perfect!
Comment #16
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!
Comment #18
wim leersRelated: #2702171: [upstream] CKEditor's Moono skin does not respect the CKEditor cache-busting query string when loading its icons sprite.
Comment #19
wim leersOops, didn't mean to remove a related issue.