Project

General

Profile

Actions

Bug #82865

closed

Custom link attributes not working on rte_ckeditor

Added by Tania Morales over 6 years ago. Updated 11 months ago.

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

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
rte_ckeditor
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Adding the corresponding configuration to page TS config can not work as the configuration array expected is parsed on a different way.

Class BrowseLinksController :
line 137
$this->buttonConfig = $this->thisConfig['buttons']['link'] ?? [];

It only works by appending a dot to the array keys like this:
$this->buttonConfig = $this->thisConfig['buttons.']['link.'] ?? [];

Same for lines 192 and 193

The RTE configuration looks like this

RTE {
default {
classesAnchor {
externalLink {
class = external-link
type = url
titleText = Opent een pagina op een andere website
}
}
buttons {
link {
url.properties.class.default = external-link
properties.class.allowedClasses =external-link
}
}
}

This is a very popular and important feature on the RTE and we have got lots of complains because it was working fine on previous versions. I'd really appreciate any feedback.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #81381: RTE TSConfig is lost when using own CKEditor presetClosed2017-05-30

Actions
Actions

Also available in: Atom PDF