Add file link on image with CKE 5

Created on 17 October 2024, 28 days ago

Problem/Motivation

#2618848: Follow core changes to allow to link a file on an image seems to be broken on the CKE 5 version of the module.

Steps to reproduce

Insert an image in a CKE field.
Select the image and insert an uploaded file.
The file link replaces the images instead of being added around the image.

Proposed resolution

I think the problem is the if (selection.hasAttribute('linkHref')) { condition in drupalfilecommand.js.
The image has no an linkHref attribute yet, but it is indeed linkable.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024