mask icon indicating copy to clipboard operation
mask copied to clipboard

BE: update Font-Awesome Icons from fontIconPicker

Open abtade opened this issue 4 years ago • 4 comments

Hello everyone :)

Please update the Font-Awesome icons from the jQuery Plugin fontIconPicker. The newest Fontawesome version is currently 6.1.1 . This Fontawesome version has a wider variety of icons to choose from. The more icons to choose from the better I would say :)

abtade avatar Apr 19 '22 09:04 abtade

@abtade Hi, we use the FontAwesome Icons from the TYPO3 core, so we don't have to ship our own Icons. But, maybe I can work out a solution to provide your own Icons, which then can be loaded into the icon picker.

nhovratov avatar Apr 19 '22 09:04 nhovratov

@nhovratov thank you for the quick response, that would be great! :)

abtade avatar Apr 19 '22 09:04 abtade

I noticed a similar issue: TYPO3 10.4.27 uses FontAwesome 4.7 in the BE

@font-face{font-family:FontAwesome;src:url(../../../../../../typo3/sysext/backend/Resources/Public/Fonts/FontAwesome/fontawesome-webfont.eot?v=4.7.0);

I also use the Plugin https://github.com/DirkPersky/typo3-rte-ckeditor-fontawesome which adds a FontAwesome button to the RTE, so that I can use FontAwesome Icons in the RTE. Here I use 5.15.4 because in the FE I also use Fontawesome 5.15.4.

Because Mask uses the default FontAwesome 4.7 version from the backend, the icons in the CE are now broken because of the included FontAwesome 5.15.4 version in the BE from the Plugin. grafik

The problem seems to be the Unicode character: If I use the circle-o (https://fontawesome.com/v4/icon/circle-o) Icon for one of masks content elements, the unicode character is f10c in FA 4.7. This shows correctly as long as no RTE has been loaded in the backend (and FA4.7 is used). Once a RTE editor appears, FA 5.15.4 will load and the icon will not show correctly as shown above.

Adding an option in Mask to choose FA5 or FA6 would probably solve the issue but you would probably have to adapt the icon css classes too because they are different between the FA 4, 5 and 6?

I have no idea if adding FA5 will result in any further icon errors in the TYPO3 10 BE. So far I haven't seen any false icons.

I also noticed that TYPO3 11 and TYPO3 12 still uses Fontawesome 4.7, is that correct?

medarob avatar May 12 '22 13:05 medarob

TYPO3 still uses Fontawesome 4.7, yes. I'm not aware of an upcoming upgrade at the moment.

nhovratov avatar May 18 '22 07:05 nhovratov