Bug #88710

rte_ckeditor link browser classes and their titleText and target

Added by Jan Kiesewetter 2 months ago. Updated 3 days ago.

Status:
New
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

History

#1 Updated by Jan Kiesewetter 2 months ago

  • Description updated (diff)

#2 Updated by Markus Dübbert 3 days 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

Also available in: Atom PDF