Bug #101205
closed
Epic #99669: CKEditor5 Collection
RTE Links _blank is reset on save or when second link gets set
Added by Lukas Dörr over 1 year ago.
Updated about 1 year ago.
Category:
RTE (rtehtmlarea + ckeditor)
Tags:
ckeditor5, rte, target
Description
I am working with TYPO3 V12.4.2 - a moderator found out, that he cannot add a second _blank target for links in CKEditor 5.
You can replicate this bug by adding a text-element and create two lines with random text:
- now link both texts as usual and set a target while linking them
- when you save the text now, both links don`t have a target anymore in "Source"-View
- when you go to frontend, you see, that only one of both links have a target tag set.
- you can also link only one of the links, set the target and you won't see the target in "Source" Tab anymore.
By also saving your text, when not actively setting the target again, the only one link will not have the target as well, when you save again.
I could reproduce your problem with v12:
1. Insert 2 page links, with page browser add "target" "_blank"
2. Save record (TextMedia)
3. Look in DB, only one of the links has target
select bodytext from tt_content where uid=41;
+--------------------------------------------------------------------------------------------------------+
| bodytext |
+--------------------------------------------------------------------------------------------------------+
| <p><a href="t3://page?uid=1">link1</a></p>
<p><a href="t3://page?uid=1" target="_blank">link2</a></p> |
+--------------------------------------------------------------------------------------------------------+
Also, if switching to source mode and back, target attribute for all links will be removed.
I think this is a duplicate or almost duplicate of #101360 and #101338
Please check existing patch if this solves the problem: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80034
- 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
- Status changed from New to Under Review
- Related to Bug #100038: CKeditor 5: target attribute is removed from file-links added
- Status changed from Under Review to Closed
I am closing as duplicate in favor of #101360.
Usually, we keep the older issue, but I think this is a more general problem and is described in #101360
- Related to Bug #101638: TYPO3 12 CKE Editor target still not working properly added
- Parent task set to #99669
Also available in: Atom
PDF