Project

General

Profile

Actions

Bug #86701

closed

Setting different link targets in Link Browser does not work properly

Added by Torben Hansen about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2018-10-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

As part of the RTE configuration (either yaml File or PageTS) you can define the default target attribute for links in the linkbrowser.

Example (yaml):

buttons:
  link:
    properties:
      class:
        allowedClasses: "internal-link,external-link" 
    page:
      properties:
        class:
          default: "internal-link" 
    url:
      properties:
        class:
          default: "external-link" 

classesAnchor:
  internalLink:
    class: "internal-link" 
    type: "page" 
    target: "_top" 
  externalLink:
    class: "external-link" 
    type: "url" 
    target: "_blank" 

The example above defines target="_top" for the internal link class and target="_blank" for the external link class.

Steps to reproduce:

  1. Define a RTE configuration as shown above
  2. Create a text content element, paste some random text and link the pasted text
  3. When the linkbrowser opens initially, the Link Browser tab "Page" is shown with the default link target "_top"
  4. Select the tab "External URL" and the default link target keeps "_top", which is wrong
  5. Select the tab "Email"
  6. Select the tab "External URL" again and now the default link target is "_blank"

I tested this with ext:rte_ckeditor and with ext:rtehtmlarea.

The reason for this behavior is, that the Link Browser uses the default target attribute of the first tab that is opened and passes it as link parameter linkAttributes[target]= to all other tabs. Bugfix could be to exclude the linkAttributes[target]= parameter.

The bug affects TYPO3 v9 and v8 and propably lower versions.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #83754: Unable to set preconfigured values in CKEditor for title and targetClosed2018-02-01

Actions
Actions #1

Updated by Riccardo De Contardi about 6 years ago

Is this the same issue? #83754

Actions #2

Updated by Torben Hansen about 6 years ago

Oh yes, this is the same issue. Could you please set this issue as related to #83754 or close this one?

Actions #3

Updated by Riccardo De Contardi about 6 years ago

  • Related to Bug #83754: Unable to set preconfigured values in CKEditor for title and target added
Actions #4

Updated by Riccardo De Contardi about 6 years ago

  • Status changed from New to Closed

I close this issue as a duplicate of #83754 , please continue the discussion there, thank you.
I have added there a reference to this issue to keep track of it

If you think that this is the wrong decision, then please reopen it or open a new ticket and add a relation to this ticket number.

Thank you again and best regards

Actions

Also available in: Atom PDF