Bug #90202
closedLink Browser use wrong default title text
100%
Description
The Link Browser used the last Titletext of an element and not the given default value.
Given is the following yaml config:
classesAnchor:
internalLink:
class: 'internal-link'
type: 'page'
titleText: 'Expected default title text'
internalLinkNewWindow:
class: 'internal-link-new-window'
type: 'page'
target: '_blank'
titleText: 'Displayed title text'
buttons:
link:
page:
properties:
class:
default: internal-link
properties:
class:
allowedClasses: 'internal-link, internal-link-new-window'
I expected as default title text 'Expected default title text' of the selected default class 'Internal Link', but the last title text ('Displayed title text') is displayed (see screenshot).
This happens in TYPO3 10.3 and also in TYPO3 9.
Possible solutions:
the default value is directly overwritten again in '\TYPO3\CMS\RteCKEditor\Controller\BrowseLinksController::renderLinkAttributeFields' this part should be modified.
if ($conf['titleText']) {
$this->classesAnchorClassTitle[$conf['class']] = ($this->classesAnchorDefaultTitle[$conf['type']] = $this->contentLanguageService->sL(trim($conf['titleText'])));
}
Files
Updated by Riccardo De Contardi almost 5 years ago
Updated by Gerrit Code Review almost 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63034
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63883
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63883
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63866
Updated by Daniel Goerz over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 88ade1423f05c17ea7f0dfd3474b25160d3285ce.