Skip to content

Commit

Permalink
[BUGFIX] Make ckeditor link browser not drop CSS-Classes if editing a…
Browse files Browse the repository at this point in the history
…gain

Fix the link browser to not drop the CSS-Class value with multiple classes
if editing the same link.

Resolves: #85182
Releases: master, 8.7
Change-Id: Id7819f25c6a456c379de406816e44d7d1d76157e
Reviewed-on: https://review.typo3.org/57439
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
frleb authored and lolli42 committed Jul 2, 2018
1 parent bb8a606 commit 0135224
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,6 @@ protected function initCurrentUrl()
}
}

if (!empty($this->currentLinkParts['class'])) {
// Only keep last class value (others are automatically added again by required option)
// https://review.typo3.org/#/c/29643
$currentClasses = GeneralUtility::trimExplode(' ', $this->currentLinkParts['class'], true);
if (count($currentClasses) > 1) {
$this->currentLinkParts['class'] = end($currentClasses);
}
}
parent::initCurrentUrl();
}

Expand Down

0 comments on commit 0135224

Please sign in to comment.