Bug #90369

Changing the href with the link Wizard when the a tag has multiple classes replace the link text with the href

Added by Rachel Foucard 9 months ago. Updated 7 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2020-02-13
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello,

You can reproduce the bug in a 9LTS platform, with ckeditor for instance :

  • apply multiple classes on a link (ex: btn btn-primary)
  • double click on the link to change the href with the wizard
  • change the link url

the link text is replaced by the href

Cheers,
Rachel

screen-01.PNG View (52.9 KB) Rachel Foucard, 2020-03-26 17:21

screen-02.PNG View (46.6 KB) Rachel Foucard, 2020-03-26 17:21

screen-03.PNG View (39.4 KB) Rachel Foucard, 2020-03-26 17:21

screen-04.PNG View (55.4 KB) Rachel Foucard, 2020-03-26 17:21

History

#1 Updated by Nikita Hovratov 9 months ago

I tried this, but the linktext doesn't get replaced by the href. Instead the link class just gets removed.
By changing the link url you mean the external url, right?

#2 Updated by Rachel Foucard 9 months ago

Hi Nikita,
When I try to change the url link with an external url, it replace the link text with the url, and if I test with a page link, then it replace the link text with the "t3:" code. But only if the <a> class attribute has at least 2 classes.

Cheers,
Rachel

#3 Updated by Susanne Moog 7 months ago

  • Category set to RTE (rtehtmlarea + ckeditor)

#4 Updated by Andreas Fernandez 7 months ago

  • Status changed from New to Needs Feedback

I fail to reproduce the issue.

  1. Does this issue still occur in the current version?
  2. Could you please provide a screencast that reveals the issue?

Kind regards
Andreas

#5 Updated by Rachel Foucard 7 months ago

Hi Andreas,

Sure, here is a RTE with a link button (from bootstrap package configuration) :

You can see that we have 2 classes : btn and btn-primary in the a tag :

If I modify the link with the wizard:

Then the all a tag is replaced with the src value :

Tested today with a 9.5.14 version.

Cheers,
Rachel

#6 Updated by Riccardo De Contardi 7 months ago

  • Status changed from Needs Feedback to New

Also available in: Atom PDF