Issue Bug Closed

#98273Undefined array key "titleText" in RTE Link browser

Andreas Kienast 09/07/22, 07:03 updated 10/04/22, 08:53

Description

If titleText is used in the RTE configuration, but not for all items in classesAnchor, a PHP 8 warning arises:

PHP Warning: Undefined array key "titleText" in /var/www/html/typo3_src/typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php line 164

Example config

classesAnchor:
    page:
        class: 'link-page'
        type: 'page'
        titleText: 'This is a linked page'
    folder:
        class: 'link-folder'
        type: 'folder'
    file:
        class: 'link-file'
        type: 'file'
    external:
        class: 'link-external'
        type: 'url'
        titleText: 'lul'
    mail:
        class: 'link-mail'
        type: 'mail'

Reviews 2