Issue Bug Closed

#100768CKEditor 5: Incorrect webfont path in backend

Samuel Heinz 04/27/23, 08:41 updated 07/09/24, 12:55

Description

After TYPO3 Upgrade to TYPO3 v12 LTS the webfonts in the RTE/CKEditor v5 not working well.
In Frontend it works well.

Composer Installation

CSS File frontend and rte.css

@font-face {
  font-family: "roboto_condensedregular";
  src: url("../../Fonts/robotocondensed-regular-webfont.eot");
  src: url("../../Fonts/robotocondensed-regular-webfont.eot?#iefix") format("embedded-opentype"), url("../../Fonts/robotocondensed-regular-webfont.woff2") format("woff2"), url("../../Fonts/robotocondensed-regular-webfont.woff") format("woff"), url("../../Fonts/robotocondensed-regular-webfont.ttf") format("truetype"), url("../../Fonts/robotocondensed-regular-webfont.svg#roboto_condensedregular") format("svg");
  font-weight: normal;
  font-style: normal;
}

*Frontend file path*
CSS: https://www.domainname.tld/_assets/40bdfa44c70e4b3480c28be680c2f7f2/Css/Dist/styles.css?1682583229

Webfonts: https://www.domainname.tld/_assets/40bdfa44c70e4b3480c28be680c2f7f2/Fonts/robotocondensed-regular-webfont.woff2

-> Working

*Backend file paths*
CSS: https://www.domainname.tld/typo3/rte/resource/stylesheet?token=6d5d4ab8f6bd5e872b027a99b2754a7be74b8171&params=%7B%22styleSrc%22:%22%5C/_assets%5C/40bdfa44c70e4b3480c28be680c2f7f2%5C/Css%5C/Dist%5C/rte.css%22,%22cssPrefix%22:%22%23data_tt_content__13__bodytext_ckeditor5%20.ck-content%22%7D&hmac=3e344820e55d1a8f015c66195764ee875485ba13#981c2502058c2f46070e70adfea9d978972f86d1

Webfonts: https://www.domainname.tld/typo3/Fonts/robotocondensed-regular-webfont.woff2

-> Wrong – Not working

I think the generated RTE css should also be in “_assets” to work probably with other assets like webfonts…

Best regards
Sam

Reviews 8