Project

General

Profile

Actions

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 10 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2023-06-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
ckeditor5, rte, target
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #101360: Some attributes for <a> element are not persisted (class, rel, target) in RTEResolvedSybille Peters2023-07-15

Actions
Related to TYPO3 Core - Bug #101338: TYPO3 12 CKE Editor target not workingClosed2023-07-12

Actions
Related to TYPO3 Core - Bug #100038: CKeditor 5: target attribute is removed from file-linksClosed2023-02-27

Actions
Related to TYPO3 Core - Bug #101638: TYPO3 12 CKE Editor target still not working properlyResolved2023-08-09

Actions
Actions #1

Updated by Sybille Peters 10 months 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

Actions #2

Updated by Sybille Peters 10 months ago

  • Related to Bug #101360: Some attributes for <a> element are not persisted (class, rel, target) in RTE added
Actions #3

Updated by Sybille Peters 10 months ago

  • Related to Bug #101338: TYPO3 12 CKE Editor target not working added
Actions #4

Updated by Gerrit Code Review 10 months 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

Actions #5

Updated by Sybille Peters 10 months ago

  • Related to Bug #100038: CKeditor 5: target attribute is removed from file-links added
Actions #6

Updated by Gerrit Code Review 10 months 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

Actions #7

Updated by Sybille Peters 10 months ago

Actions #8

Updated by Sybille Peters 10 months ago

  • 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

Actions #9

Updated by Sybille Peters 9 months ago

  • Related to Bug #101638: TYPO3 12 CKE Editor target still not working properly added
Actions #10

Updated by Benjamin Franzke 8 months ago

  • Parent task set to #99669
Actions

Also available in: Atom PDF