Bug #100038
closed
Epic #99669: CKEditor5 Collection
CKeditor 5: target attribute is removed from file-links
Added by Henrik Ziegenhain over 1 year ago.
Updated over 1 year ago.
Category:
RTE (rtehtmlarea + ckeditor)
Sprint Focus:
Stabilization Sprint
Description
As a user I insert a link to a file and want it to open in new window.
After setting link and select target=_blank I save the content.
Everything is fine in frontend and database
BUT: My target-attribute is removed in CKeditor - so after saving this element again my target attrib. is also gone in frontend and database.
It seems, that target attrib is not allowed on the way from database to CKeditor.
Workaround:
With fileTarget = _blank
one can enforce _blank for all filelinks.
For sure it would be nice to let the editor choose which ones to open with _blank or _top
- Status changed from New to Accepted
- Parent task set to #99669
- Target version changed from 12 LTS to Candidate for patchlevel
- Sprint Focus set to Stabilization Sprint
It seems there are several duplicate issues for this bug. It would help if you can double-check if existing patch also solves your problem or is a different problem. Please feel free to comment , if incorrectly assumed these are duplicates.
- Related to Bug #101360: Some attributes for <a> element are not persisted (class, rel, target) in RTE added
- Related to Bug #101338: TYPO3 12 CKE Editor target not working added
- Related to Bug #101205: RTE Links _blank is reset on save or when second link gets set added
- Status changed from Accepted to Under Review
- Status changed from Under Review to Closed
Hey, Hendrik. I am closing as duplicate in favor of #101360.
Usually, we keep the older issue, but this issue mentions only a very special case (file links and only the target), so I think it is best to keep the more general issue and close the others.
Also available in: Atom
PDF