jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: Tom68 on 07.06.2025 15:59:48

Title: Components > jDownloads > Layouts > CSS Files - Editor removes backslash on Save & Close
Post by: Tom68 on 07.06.2025 15:59:48
Joomla 5.3.1
jDownloads 4.0.47

Colin & Arno,

It seems the jDownloads editor that is called up in the backend under "Components > jDownloads > Layouts > CSS Files" removes backslashes from the css code. The following css code is part of my "jdownloads_custom.css":

/* replace bullet */

.com-content-article__body ul{
    list-style-type: none;
}

.com-content-article__body li:before {   
    font-family: "Font Awesome 6 Free";
    content: '\f15c';
    margin:0 0.65em 0 -1.4em;
}

By means of this code I replace the default bullet by the files-lines character of font awesome 6 free. However, when the editor is left by clicking "Save & Close" the backslash before "f15c" gets removed. As a result "F15C" is displayed on the corresponding webpage rather than the files-lines character.

Regards
Tom
Title: font awesome
Post by: ColinM on 07.06.2025 16:51:46
Tom
My understanding of the backslash character is that the characters following the backslash, up to a space character, are to be shown explicitly and not interpreted. So in your case you wanted to see F15C in the text shown on the screen
Please let me know
 
Colin
Title: Re: Components > jDownloads > Layouts > CSS Files - Editor removes backslash on Save & Close
Post by: Tom68 on 07.06.2025 17:30:46
Colin,

Actually, here it is just the other way round. With the backslash the character is intepreted and the files-lines symbol is displayed. Without the backslash only the code f15c is displayed. You can easily verify this, with a website with corresponding css code and a browser.

Regards
Tom
Title: back slash shold not be removed
Post by: ColinM on 07.06.2025 21:04:04
Tom
I did mean that the backslash should not be removed so the image is shown
Colin
Title: Re: Components > jDownloads > Layouts > CSS Files - Editor removes backslash on Save & Close
Post by: Tom68 on 10.06.2025 19:41:24
Some more background information on using Font Awesome 6 Free in "jdownloads_custom.css".


I hope this helps to understand the problem.

Regards
Tom
Title: Re: Components > jDownloads > Layouts > CSS Files - Editor removes backslash on Save & Close
Post by: Arno on 13.06.2025 11:45:19
Hi,
thanks for the info.

Please try the attached file and copy it to: administrator/components/com_jdownloads/src/Controller
Title: Re: Components > jDownloads > Layouts > CSS Files - Editor removes backslash on Save & Close
Post by: Tom68 on 14.06.2025 16:10:08
Thanks Arno,

the updated code fixes the problem. The backslash is now preserved and the Font Awesome icon is correctly displayed after saving the css files.  :)

Regards
Tom