This is blocked on #2540850: (regression) EditorImageDialog alignment & captioning are not working.

It's been a long time (more than six months) since we last updated CKEditor: #2415111: Update CKEditor library to 4.4.7.

At the beginning of July, CKEditor 4.5 was released. Since then, three point (bugfix) releases have been made, so we're now at CKEditor 4.5.3.

CKEditor 4.5 brought two important new features. Bringing those to Drupal 8 core is for a separate issue, hopefully for Drupal 8.1. Issues opened:

In addition, CKEditor 4.5 added support for the new Microsoft Edge browser available in Windows 10.

CKEditor 4.5.3 specifically also improved pasting from Microsoft Word, so after this lands, we should re-evaluate #1955300: Ensure CKEditor's "Paste From Word" feature works stellarly before Drupal 8 release.

See also:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

TJacksonVA’s picture

@dawehner, normally I would be fully supportive of that. However, apparently only CKEditor 4.5 will have Microsoft Edge browser support. Since Windows 10 will be released on July 29th, and the standard browser will be the Edge browser, I would think it would be at least a Major priority as without CKEditor 4.5.x, Drupal 8.0.x will not work with a major browser.

In any event, I defer to your judgment.

nod_’s picture

Issue tags: +JavaScript

It is important and we're very much interested in updating it. Status are just internal policies.

We're tracking this, it's important to us too.

TJacksonVA’s picture

And apparently they have issued CKEditor 4.5.1 just a day later to fix one bug:

#13486: Fixed: The Upload Image plugin should log an error, not throw an error when upload URL is not set.

CKEditor 4.5.1

TJacksonVA’s picture

Issue summary: View changes
TJacksonVA’s picture

Title: Update CKEditor library to 4.5 » Update CKEditor library to 4.5.1
Issue summary: View changes
TJacksonVA’s picture

Along the lines of supporting the new Microsoft Edge browser in Windows 10, the current development version of CKEditor 4.5.2 has at least 7 ticket items relating to the Edge browser.

CKEditor 4.5.2 development version

TJacksonVA’s picture

Title: Update CKEditor library to 4.5.1 » Update CKEditor library to 4.5.2
Related issues: +#2321583: Update CKEditor library to 4.5.5

The folks at CKEditor have just closed out CKEditor 4.5.2, which should be released on August 3, 2015. This release contains 34 fixes, including several more fixes for the new Microsoft Edge browser in Windows 10. I will post the link as soon as it is available.

TJacksonVA’s picture

Issue summary: View changes

And they have now released CKEditor 4.5.2: CKEditor 4.5.2
Since this contains additional fixes for the Edge browser, this would be worthwhile to get into the Drupal 8 beta.

And here is a description of the changes: CKEditor 4.5.2 Released

TJacksonVA’s picture

Issue summary: View changes
TJacksonVA’s picture

TJacksonVA’s picture

Title: Update CKEditor library to 4.5.2 » Update CKEditor library to 4.5.3
Issue summary: View changes

Updated issue to CKEditor 4.5.3 which was released today.

andypost’s picture

Issue summary: View changes
Wim Leers’s picture

Updating the IS to be consistent with prior issues like this one. Opened issues to support CKEditor's new features in 8.1.

Also, taking on rolling this patch.

webchick’s picture

Priority: Normal » Major
Wim Leers’s picture

Status: Active » Needs review
FileSize
2.42 MB

Done. Seems to work well. But… until #2540850: (regression) EditorImageDialog alignment & captioning are not working is fixed, we cannot actually properly test this… :(

TJacksonVA’s picture

Issue summary: View changes
TJacksonVA’s picture

Issue summary: View changes
Wim Leers’s picture

Thanks, @TJacksonVA, good IS updates :)

Note that in my manual testing, this is working correctly, but the most crucial test is actually image captions/alignment, which is exactly what I can't test until #2540850: (regression) EditorImageDialog alignment & captioning are not working is fixed.

andypost’s picture

There's a duplicate issue filed #2561119: Update CKEditor library to 4.5.3 the main difference in plugin amount shipped - it makes sense to discus while waiting for #2540850: (regression) EditorImageDialog alignment & captioning are not working

vprocessor’s picture

Done. Seems to work well. But… until #2540850: (regression) EditorImageDialog alignment & captioning are not working is fixed, we cannot actually properly test this… :(

Hi Wim, please check interdiff with my patch
This works properly and has all new ckeditor plugins like in old version

Wim Leers’s picture

Title: Update CKEditor library to 4.5.3 » [PP-1] Update CKEditor library to 4.5.3
Status: Needs review » Postponed

Status: Postponed » Needs work
Wim Leers’s picture

Status: Needs work » Postponed

Ignore #21, #16 is the right patch.

Wim Leers’s picture

Wim Leers’s picture

Issue tags: +Usability

We just got confirmation that this patch (so simply updating to CKE 4.5) fixes a nasty WTF when pasting from Word or other rich text editors: #2516932-5: When pasting from Word, empty paragraphs were created. So, also tagging usability :)

Wim Leers’s picture

effulgentsia’s picture

Priority: Major » Critical

This is a minor version update, not just a patch release update, so promoting to Critical, per #2203431: [meta] Various asset (JavaScript) libraries have to be updated to a (minified) stable release prior to 8.0.0.

xjm’s picture

Which issue is this postponed on? Can we put that in the summary?

Wim Leers’s picture

Issue summary: View changes
DuaelFr’s picture

This issue seems to be blocking #2510380: Images cannot be linked in CKEditor which is, IMHO, a release blocker if we don't want to go back in the darkest depths of the Internet.
Users won't ever understand why the hell they cannot put a link on their magnificent kitten-friendly animated GIF ;)

Wim Leers’s picture

Wim Leers’s picture

Title: [PP-1] Update CKEditor library to 4.5.3 » Update CKEditor library to 4.5.3
Assigned: Wim Leers » Unassigned
Status: Postponed » Needs review
Issue tags: +Needs manual testing

I was able to thoroughly test it thanks to #2540850: (regression) EditorImageDialog alignment & captioning are not working having a fix.

I was not able to find any regressions, everything WRT image alignment & captioning is still working perfectly! :)

Therefore, unpostponing, and marking needs review, because I can't RTBC this patch. Will need somebody to also do a round of basic manual testing. Note that manual testing of pasting from Word and other rich text editors was already done at #2516932-5: When pasting from Word, empty paragraphs were created and found that CKEditor 4.5.3 made significant improvements :)

kattekrab’s picture

I've done some manual testing of the patch.

Used Basic HTML and Full HTML options on the article content type.
Enabled ALL THE THINGS possible via drag drop in the text format config thing.

Fooled around a bit with pasting from Pages and OpenOffice (I don't have msword)

Seems to work ok. If there's some more specific things I should be testing for, and a list I can follow, I'd be happy to do some more thorough testing too.

But as far as it goes, this looks ok to me!

webchick’s picture

Status: Needs review » Fixed

That sounds like an RTBC to me. :)

Committed and pushed #16 to 8.0.x. Thanks!

  • webchick committed 002ee17 on 8.0.x
    Issue #2521820 by Wim Leers, vprocessor, TJacksonVA, kattekrab: Update...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Wim Leers’s picture