Project

General

Profile

Actions

Bug #83138

closed

rte_ckeditor: Exception, if title-readOnly = true and no titleText is set

Added by Peter Benke almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2017-11-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello together,

the following, own defined RTE-yaml:

buttons:
  link:
    page:
      properties:
        title:
          readOnly: true

classesAnchor:
  internalLink:
    # No "titleText" is set
    class: 'internalLink'
    type: 'page'

(No "titleText" is set in classesAnchor.internalLink).
This leads to an exception:

htmlspecialchars() expects parameter 1 to be string, null given
TypeError thrown in file
/home/pbenke/Dokumente/Websites/www.allplan87.com/vendor/typo3/cms/typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php in line 472.

The same error, if I set titleText: ''

It only works, if titleText is set and not empty:

classesAnchor:
  internalLink:
    titleText: 'This is my default title'
    class: 'internalLink'
    type: 'page'

BTW:

It would be nice, if the title-field could be disabled at all.
There is the readOnly-option only.

Thank you.

Actions

Also available in: Atom PDF