CKEditor promises to bring a number of improvements we probably want to leverage:
- handle textarea[required] attributes
- Allow list-only indentation
- New jQuery adapter
- Are http://dev.ckeditor.com/ticket/10042 and http://dev.ckeditor.com/ticket/9923 relevant to us?
At the moment, no more issues are open for 4.2, so it probably won't roll out much later than its due date in mid-July, see: http://dev.ckeditor.com/roadmap
Postponing this until 4.2 release, though.
This blocks:
#2035647: Use CKEditor 4.2's new ability to only allow indentation of lists
As part of this issue:
#2035647: Use CKEditor 4.2's new ability to only allow indentation of lists
#2032341: Remove 'image' and 'link' plugins from bundled CKEditor build
#2035615: Use CKEditor 4.2's new onChange event rather than our temporary work-around
#2035653: Optimize CKEditor's build-config.js
See also:
#1950098: Update CKEditor library to 4.1
#2039163: Update CKEditor library to 4.4
Comment | File | Size | Author |
---|---|---|---|
#14 | ckeditor_4.2-2036253-14.patch.zip | 690.1 KB | Wim Leers |
#14 | interdiff.txt | 824 bytes | Wim Leers |
#11 | interdiff-build_config.js_.txt | 2.2 KB | Wim Leers |
#11 | interdiff.txt | 4.9 KB | Wim Leers |
#8 | ckeditor_4.2-2036253-8.patch.zip | 690.34 KB | Wim Leers |
Comments
Comment #1
PanchoThere's also a reference to jQuery 4.2 in #1879120-37: Use Drupal-specific image and link plugins — use core dialogs rather than CKEditor dialogs, containing alterable Drupal forms.
Comment #2
Wim Leers.
Comment #2.0
Panchoreplace workaound issue by "remove workaround" issue
Comment #2.1
PanchoReference last CKEditor update issue
Comment #3
PanchoReorganized the issue summary a bit. Also added some more links.
Comment #4
PanchoCKEditor 4.2 has been released yesterday: http://ckeditor.com/release/CKEditor-4.2
So we can go and update the library. Who rolls a patch? I won't have time before tonight.
Dropped compatibility support for Internet Explorer 7 is another nice aspect of the release.
If CKEDITOR(inline) crashes when using ol/ul list should be a major problem, we'd have to wait until 4.2.1, but from the comments it seems that it doesn't crash anymore, just has to be further improved.
Comment #5
Wim LeersIndeed! And, as planned, working on this now, during this afternoon :)
Comment #6
PanchoAwesome! So maybe we can continue with #2035647: Use CKEditor 4.2's new ability to only allow indentation of lists later tonight?
Comment #7
Wim Leers#6: That will be done today, yes :)
Comment #7.0
Wim LeersAdded some links, reorganized stuff
Comment #8
Wim LeersSo, having worked on this, I came to the following conclusions:
build-config.js
) must be done as part of this issue, otherwise you won't be able to do indentation of nested lists anymore through CKEditor, so merging that issue with this one.build-config.js
) could be done separately, but there is no point in doing it separately, it just results in more overhead, so merging that issue with this one.core/modules/ckeditor/js/ckeditor.js
in favor of what was introduced in CKE 4.2, so merging that issue with this one.build-config.js
, it's kind of silly to do that in a separate issue, so merging that issue with this one.So instead of 5 tiny issues, it is now 1 small issue. Less reviewer, committer and testbot overhead. Better. Simpler. The tiny issues were better for tracking, but due to the nature of the task (committing an updated version of CKEditor), it's just easier to do them all at once.
Patch review guidance
build-config.js
indentlist
link
andimage
interdiff.txt
ckeditor.module
: to update version numbercore/modules/ckeditor/js/ckeditor.js
to leverage CKE 4.2's newonChange
eventdrupallink
anddrupalimage
plugins as per #2032341: Remove 'image' and 'link' plugins from bundled CKEditor buildAll other changes are just for the updated CKEditor itself.
Drupal.org limits uploads to 3 MB, but the patch is 3.4 MiB/3.2 MB… So I had to zip it, unfortunately. Can somebody maybe give me permission to upload bigger files, or just increase the upload size?
Comment #8.0
Wim LeersRemove incorrect blocker mentions.
Comment #9
Wim LeersDidn't mean to change title, sorry.
Comment #10
nod_Changes in ckeditor module are all good
I guess you forgot to upload a couple of files but zip is good to go.
Comment #11
Wim LeersHere are the interdiffs that should've been attached to #8 and to which I refer in #8.
(They're also what nod_ meant by the missing files in #10.)
Comment #12
PanchoRegarding the translations, Wim wrote in #2:
Well I'm not sure we want to pick up whatever is offered to us, because we don't want to ship CKEditor translations for languages we're currently not supporting with a Drupal translation, such as currently
sr-latn
,fr-ca
oren-**
and probably more to come. So optimally we would be using LanguageManager::getStandardLanguageList.Either way we need to find ways to match language codes like
pt-pt => pt
,no => nn
,zh-cn => zh-hant
, andzh => zh-hans
(Let this be a followup, though).Secondly, the docs in build-config.js should be updated as well:
// @todo D8: CKEditor Widgets is not available in 4.1 RC, and we're not yet
Also it might be helpful to list all currently existing plugins, setting the excluded ones to 0, so it remains clear which omissions are on purpose and which plugins might be missing because they were (re-)added in future CKEditor releases. Optimally we would have a short reason per omitted plugin.
Same holds for languages.
Otherwise looks good. You probably already did a successful test run, did you?
Comment #13
PanchoAlso, I'm not sure if it's possible or makes sense to have contrib add plugins that were excluded here.
Regarding the excluded 'indentblock' plugin, you said in #2035647-4: Use CKEditor 4.2's new ability to only allow indentation of lists that this would only be possible in contrib. Is it then? I've no clue but we should make sure it is possible.
Comment #14
Wim Leers#12:
1. mapping Drupal languages to CKEditor languages: you're right, and apparently I did not yet have an issue for this. Now I do: #2050097: Map CKEditor languages to Drupal languages. Thanks!
2. Fixed. I removed that entirely because now it is much more Drupal-specific. Plus, it's trivial to compare Drupal's
build-config.js
to CKEditor's defaults (basic/standard/full) by just diffing the files. The CKEditor Widgets todo must remain, because that is still not yet in there, only once #2027181: Use a CKEditor Widget to create a stellar UX for captioning and aligning images lands, I'll be able to remove that todo.3.
No. Go to http://ckeditor.com/builder. There are many dozens plugins. New ones get added every week or so. New languages get added every month or so. Neither of this makes sense. It'd be like listing every Drupal module on drupal.org in a Drush
.make
file and then marking them as "don't download/install this one". I veto this.#13:
Yes, this is of course possible. :) Many months ago, we made sure that that would be possible.
Having fixed the docs in
build-config.js
, and having created a new issue for the relevant remaining problem, this is now back to RTBC.Comment #15
nod_rtbc +1
Comment #16
alexpottI've confirmed that all the included issues have been included, I've reviewed changes to non ckeditor code, and I've manually tested - all looks good.
Committed 7aae5d3 and pushed to 8.x. Thanks!
Comment #17
Wim LeersYay, thanks!
Comment #18.0
(not verified) CreditAttribution: commentedUpdated issue summary.