Bug #101205
closedEpic #99669: CKEditor5 Collection
RTE Links _blank is reset on save or when second link gets set
0%
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.
Updated by Sybille Peters about 1 year ago
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
Updated by Sybille Peters about 1 year ago
- Related to Bug #101360: Some attributes for <a> element are not persisted (class, rel, target) in RTE added
Updated by Sybille Peters about 1 year ago
- Related to Bug #101338: TYPO3 12 CKE Editor target not working added
Updated by Gerrit Code Review about 1 year ago
- Status changed from New to Under Review
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80034
Updated by Sybille Peters about 1 year ago
- Related to Bug #100038: CKeditor 5: target attribute is removed from file-links added
Updated by Gerrit Code Review about 1 year ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80034
Updated by Sybille Peters about 1 year ago
- Related to Epic #99669: CKEditor5 Collection added
Updated by Sybille Peters about 1 year ago
- Status changed from Under Review to Closed
Updated by Sybille Peters about 1 year ago
- Related to Bug #101638: TYPO3 12 CKE Editor target still not working properly added