Project

General

Profile

Actions

Bug #90369

open

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 about 4 years ago. Updated about 4 years ago.

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

0%

Estimated time:
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


Files

screen-01.PNG (52.9 KB) screen-01.PNG Rachel Foucard, 2020-03-26 17:21
screen-02.PNG (46.6 KB) screen-02.PNG Rachel Foucard, 2020-03-26 17:21
screen-03.PNG (39.4 KB) screen-03.PNG Rachel Foucard, 2020-03-26 17:21
screen-04.PNG (55.4 KB) screen-04.PNG Rachel Foucard, 2020-03-26 17:21
Actions #1

Updated by Nikita Hovratov about 4 years 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?

Actions #2

Updated by Rachel Foucard about 4 years 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

Actions #3

Updated by Susanne Moog about 4 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
Actions #4

Updated by Andreas Kienast about 4 years 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

Updated by Rachel Foucard about 4 years 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

Actions #6

Updated by Riccardo De Contardi about 4 years ago

  • Status changed from Needs Feedback to New
Actions

Also available in: Atom PDF