Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Update to the latest stable release of CKEditor before Drupal 8 RC.
- #2271051: Update CKEditor library to 4.4.4 brought CKEditor to 4.4.4.
- #2415111: Update CKEditor library to 4.4.7 brought CKEditor to 4.4.7
See also:
- #1858210: [meta] Content editing experience follow-ups — in-place editing and WYSIWYG
- #1950098: Update CKEditor library to 4.1
- #2036253: Update CKEditor library to 4.2
- #2039163: Update CKEditor library to 4.4
- #2271051: Update CKEditor library to 4.4.4
- #2345961: Update CKEditor library to 4.4.5
- #2384581: Security: Update CKEditor library to 4.4.6
- #2415111: Update CKEditor library to 4.4.7
- #2521820: Update CKEditor library to 4.5.3
Comment | File | Size | Author |
---|---|---|---|
#30 | cke_4.5.5-2321583-29.patch | 509.63 KB | Wim Leers |
Comments
Comment #1
xjmSince #2203431: [meta] Various asset (JavaScript) libraries have to be updated to a (minified) stable release prior to 8.0.0 is critical and includes this in its scope, but this isn't actionable right now, let's track this as a major. (We can bump it to critical for visibility as needed when we are ready to commit it.)
Comment #2
Wim LeersGreat! (IIRC the only reason this was critical is because #2203431: [meta] Various asset (JavaScript) libraries have to be updated to a (minified) stable release prior to 8.0.0 mandated it.)
Comment #3
cilefen CreditAttribution: cilefen commentedComment #4
Wim LeersComment #5
Wim LeersComment #6
sidharrell CreditAttribution: sidharrell commentedComment #7
sidharrell CreditAttribution: sidharrell commentedComment #8
mgiffordComment #9
TJacksonVA CreditAttribution: TJacksonVA commentedComment #10
mgiffordAs of 4 Aug 2015 CKEditor is at version 4.5.2.
Comment #11
TJacksonVA CreditAttribution: TJacksonVA commentedComment #12
Wim Leers#2521820: Update CKEditor library to 4.5.3 is bringing us the latest version, on September 22, CKEditor will release version 4.5.4. If RC1 is tagged before then, we'll be able to close this. But I think we'll want to update to 4.5.4 before release. So, keeping this issue open for now.
Comment #13
Wim LeersI talked to the CKEditor people. Version 4.5.4 was marked for September 22, but will be postponed until early October at least. I should hope we have tagged RC by then. So, retitling accordingly: the CKEditor module is ready for RC1 :)
Comment #14
Wim LeersNow updating to 4.5.4: #2581291: Update CKEditor library to 4.5.4.
Comment #15
Wim LeersAnd now we have confirmation that the final CKEditor release before 8.0.0 will be CKEditor 4.5.5.
It will be released on November 11 (one week after RC3, one week before 8.0.0). I've got confirmation from several core committers that it's going to be okay to update to that version. Especially because it will contain some bugfixes that Drupal 8 needs, most notably:
I do think it's valuable for #2581291: Update CKEditor library to 4.5.4 to still go in in the mean time, because it will make the difference in CKEditor between 8.0.0 RC3 and 8.0.0 final smaller, thus further reducing the risk.
Comment #16
DuaelFrTagging Nov 11th in my calendar to be ready for testing ;)
Comment #17
Wim LeersWoot, thank you! :)
Comment #18
Wim LeersTurns out we actually won't need the CKEditor 4.5.5 release to fix our problems. Upgrading to CKEditor 4.5.5 and updating our accompanying code is now effectively a nice-to-have. Of course, we probably still want to upgrade to CKEditor 4.5.5 just to ship with the latest stable of all (asset) libraries. But bug-wise/functionality-wise, it is now completely optional.
So, if we choose even lower risk by not updating to CKEditor 4.5.5, that is possible.
For now, there are very few bugfixes in 4.5.5 that are relevant to Drupal 8: http://dev.ckeditor.com/query?group=status&milestone=CKEditor+4.5.5.
We can evaluate whether we want to update to 4.5.5 when it is released.
Comment #19
Wim LeersWell, turns out CKEditor doesn't work in IE9 because Drupal uses the
classList
polyfill. This already was a known CKEditor bug, and should be fixed in 4.5.5: http://dev.ckeditor.com/ticket/13867. Which means we again have a good reason to update to CKEditor 4.5.5. See #2607362: CKEditor does not load in IE9.Comment #20
Wim Leershttp://dev.ckeditor.com/ticket/13885 landed, which will allow us to simplify some of what we did in #2510380: Images cannot be linked in CKEditor.
Comment #21
Wim Leers4.5.5 was released late yesterday: http://ckeditor.com/blog/CKEditor-4.5.5-Released.
Working on patch.
Comment #22
DuaelFrReady to review :)
Comment #23
Wim Leers@DuaelFr :) :)
I will post three patches here:
Please only start manual testing once I've posted the third patch.
Comment #24
Wim LeersSecond patch. See #23.
(Again: this is #2510380-75: Images cannot be linked in CKEditor applied without any changes, just rebased.)
Comment #25
Wim LeersThird patch. See #23.
Merged in from the RTBC patch at #2608434-11: Links on images can only have href attribute.
EDIT: sadly, the interdiff attached here is wrong. The right one: interdiff.txt.
Comment #26
Wim LeersSo, a CKEditor team person reviewing the individual interdiffs in #24 and #25 would be valuable, but perhaps a combined interdiff showing the entire set of differences between #23 and #25 would be handier. So, uploading a #23-to-#25 interdiff here.
Ready for review!
Comment #27
Wim LeersFuck, #25's interdiff is wrong. Sorry :(
Here's the correct interdiff for #25.
Comment #28
Wim LeersLOL!
#2608434: Links on images can only have href attribute got committed in the mean time, so … #25's interdiff is already in core. So, rerolling now.
Comment #30
Wim LeersIn the process of rerolling this patch because of #28, I discovered that that commit introduced a regression: #2608434-15: Links on images can only have href attribute.
Therefore, I think it's safer to just commit #23, the pure CKEditor upgrade. We can clean up our internal implementation during the 8.0.x cycle; what matters most is that we upgrade to CKEditor 4.5.5, not the clean-up to our plugins that CKEditor 4.5.5 enables.
So… let's ignore #23-#28. And let's just upgrade CKEditor. That's much lower risk.
This patch does exactly that (and is therefore identical to #23).
Sorry for the chaos.
Comment #31
DuaelFrAs usual, I enabled all the available plugins and disabled the HTML filter then tested each plugin one by one.
Everything works fine.
Nice work :)
Comment #32
andypostRTBC++
filed #2615852: Clean-up to our plugins that CKEditor >=4.5.5 enables
Comment #34
Wim LeersComment #35
alexpottBased on @xjm's post release triage document, committed 78124c8 and pushed to 8.0.x and 8.1.x. Thanks!