Hello;

On a recent core update (Core is 8.8.5. now) I noticed that my <drupal-media> embedded media entities weren't working any longer on CKeditor. I use core's media library + core's CKeditor.

Upon inspection, I saw that the image preview is ajax-powered and now points to a URL that uses a /preview route (I don't have the url here but it was something like /basic_html/preview?query=drupal_media_tag.

This URL was sending a 404 back and thus, preventing the media from being displayed on CKeditor and breaking functionality.

I guessed that this module could be responsible of the "hijacking" of the /preview route and, after disabling it, things were back to normal.

Sadly, I don't have enough time to investigate a solution so I'll just disable this module; but I wanted to warn users and maintainers of this issue.

Comments

idiaz.roncero created an issue. See original summary.

zach.bimson’s picture

Hi Idiaz

Thanks for reporting, I will look into this today

Thanks
Zach

  • zach.bimson committed b84ea93 on 8.x-2.x
    Issue #3127583: Incompatible with media library + CKeditor
    
zach.bimson’s picture

Status: Active » Fixed

Hi Idiaz,

I've committed a fix to dev to ensure the url formatting is compatible with core..
I will release this shortly, thanks again for reporting

It will require a cache rebuild as the routes changed from {entity_type}/{entity_id}/preview to {entity_type}/{entity_id}/view-mode/preview

idiaz.roncero’s picture

Thank you for your quick answer!

zach.bimson’s picture

No problem, this has been released to 2.3

zach.bimson’s picture

Status: Fixed » Closed (fixed)