Skip to content

[5.x]: CKEditor Images Broken After Using "Edit Image" Tooltip #477

@karlyhoffman

Description

@karlyhoffman

Description

After editing an inline image within a CKEditor field using the "Edit Image" tooltip menu, the updated image is replaced with a broken URL.

The edits made to the image appear correctly in the "Assets" view of the control panel.

Additional Info:

When viewing the source of the rich text, the difference in the img's src value is the following:

Edited (broken url): #asset:[id] with an additional ?

https://[url]/general/General/foo-bar.png?w=246&h=244&auto=compress%2Cformat%2Cavif&fit=crop&dm=1758574172&s=0fe9d1a4bfdd9cb82fdb9c821f1aadde?1758584327222#asset:219434

Original:#asset:[id]:url

https://[url]/general/General/foo-bar.png?w=244&h=246&auto=compress%2Cformat%2Cavif&fit=crop&dm=1758584326&s=47732743f276bbc329ff6a9d23131d6c#asset:219434:url

Steps to reproduce

  1. Click on an inline image within a CKEditor field to view the "Edit Image" tooltip menu.
  2. After editing the image, the previous image is replaced by a broken URL.
Before Edits

Image

After Edits

Image

Edits Appear in Assets CP View

Image

Additional info

  • Craft version: 5.8.17
  • PHP version: 8.2.28
  • Database driver & version: MySQL 28.1
  • Image driver & version: Imagick 3.7.0 (ImageMagick 7.1.1-41)
  • Plugins & versions:
    • CKEditor: 4.10.1
    • Color Mixer: 4.0.1
    • Feed Me: 6.10.1
    • Formie: 3.1.4
    • Hyper: 2.2.9
    • Imager X: 5.1.6
    • Redirects: 5.0.12
    • SEO: 5.1.17
    • Servd Assets and Helpers: 4.1.3
    • Sherlock: 5.2.0
    • Typogrify: 5.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions