Bug #88710

rte_ckeditor link browser classes and their titleText and target

Added by Jan Kiesewetter over 1 year ago. Updated 10 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2019-07-09
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In rte_ckeditor it is possible to configure the classes the link browser offers to select:

buttons:
  link:
    properties:
      class:
        allowedClasses:
        - external-link
        - external-link-new-window

    url:
      properties:
        class:
          default: "external-link" 

classesAnchor:
  externalLink:
    class: "external-link" 
    type: "url" 
    titleText: "LLL:EXT:sitepackage/Resources/Private/Language/locallang.xlf:rte.external_link_titleText" 

  externalLinkInNewWindow:
    class: "external-link-new-window" 
    type: "url" 
    target: "_blank" 
    titleText: "LLL:EXT:sitepackage/Resources/Private/Language/locallang.xlf:rte.external_link_new_window_titleText" 

There are some problems with the link browser right now:

  1. The wrong title text is set during load
  2. The title text don't change during changing the tabs
  3. The target don't change to the configured one
  4. After some changes, it don't change the title text anymore

See the video for more details.

rte_ckeditor link browser.mov (9.88 MB) Jan Kiesewetter, 2019-07-09 15:44

link-wizard.jpg View (115 KB) Markus Dübbert, 2019-09-19 05:31


Related issues

Related to TYPO3 Core - Bug #84743: ClassesAnchor target not set (ckeeditor) Closed 2018-04-16
Related to TYPO3 Core - Bug #83754: Unable to set preconfigured values in CKEditor for title and target Closed 2018-02-01

History

#1 Updated by Jan Kiesewetter over 1 year ago

  • Description updated (diff)

#2 Updated by Markus Dübbert about 1 year ago

i can confirm this behaviour.

simple example:

i want to set the default targets for 'page' and 'url':

my ckeditor yaml configuration:


buttons:
  link:
    page:
      properties:
        target:
          default: '_self'
    url:
      properties:
        target:
          default: '_blank'

When i select a link and open the link wizard, i have inconsistent behaviour when clicking the page type tabs, see attached screen.

1. i click page, the target is set to _self (this is ok)
2. i click external url, the target ist set to _self (this is wrong)
3. i click mail, the target is left blank (this is ok)
3. i click external url, the target ist set to _blank (this is ok)

the same behaviour in TYPO3 8 and 9

#3 Updated by Markus Klein 10 months ago

  • Status changed from New to Needs Feedback

This is a question of the feature definition.

For the title and target:
It should be set once to the default, but should be kept unchanged further on. The assumption is that a user might have entered a custom text that shall not be removed from the machine.

#4 Updated by Markus Klein 10 months ago

  • Related to Bug #84743: ClassesAnchor target not set (ckeeditor) added

#5 Updated by Markus Klein 10 months ago

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

Also available in: Atom PDF