Issue Bug Closed

#82865Custom link attributes not working on rte_ckeditor

Tania Morales 10/27/17, 04:19 updated 07/03/23, 14:12

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.

Reviews 2