Skip to content

Image Blobs Don't Render when Loaded From Data #65

@mmichaelis

Description

@mmichaelis

Describe the bug

When image blobs are referenced in data, like:

<img alt="Alternative Text: Red Image" xlink:href="content/900#properties.data"/>

They are not display anymore since CKEditor Plugins Release 5.0.0. In example data (for example "Various Images" you will see a broken image instead)

To Reproduce

Steps to reproduce the behavior:

  1. Open Example Application
  2. Select "Various Images" from example data.

Expected Behavior

The image is loaded from service and displayed within CKEditor.

Actual Behavior

The image is shown as a broken image with "HTML object" tag rendered on top.

Environment (please complete the following information):

  • OS: iOS, Windows
  • Browser: Chrome, Firefox
  • CKEditor Version: 34.0.0
  • CoreMedia's CKEditor Plugins Version: 5.0.0

Additional context

  • Data-Processing correctly applies a dummy image (required, as blob data are retrieved lazily from backend).

  • Image in Model is represented as:

    <htmlImg
      htmlAttributes="{attributes:{alt:"Alternative Text: Red Image", "data-xlink-href": "content/900#properties.data"}}"
      htmlContent="">
    </htmlImg>
    

    Thus, it is the GHS Plugin which kicks in here, and handles an unknown "img" element.

  • Expectation is, that it is related to recent CKEditor Update, introduced with:

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions