-
-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Labels
Description
Bug Report
| Q | A |
|---|---|
| Critical Bug | no |
| Version | 5.x.x |
Problem description
You can't add a link to an image in the editors (ckeditor). The display name is required, but when you fill that in, the image dissapears:

I've already had a quick look in the code and it appears that when you disable the validation for display text, the image just disappears. Looks like there is no check on html (image) elements in that bit: https://github.com/forkcms/forkcms/blob/master/src/Backend/Core/Js/ckeditor/plugins/medialibrary/dialogs/linkDialog.js#L107
Steps to reproduce
https://demo.forkcms.com/private/en/pages/edit?id=1&token=fm5iyzlmt4
- Add editor to page
- Add image to editor
- Add link to image
Expected behavior / Proposed solution
Add link to image