jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: josh on 16.10.2023 21:11:02

Title: HTML Tagsare being removed when i save - [Fixed in 4.0.36]
Post by: josh on 16.10.2023 21:11:02
Hi

Suspect just a setting.

I been testing, when i add html tags in the CODE tab to the donwloads description page, then switch to the EDITOR tab, It displays fine.
However when I save, all the HTML TAGS have vanished.

This is Joomla 5 RC2  and latest JDOWNLOADS 4.0.35

Its not the chosen editors, as i can add HTML tags into an article.

Hoping its just a setting
Title: Re: HTML Tagsare being removed when i save
Post by: Arno on 16.10.2023 21:22:23
Hi,
as I have noted in the jDownloads description:
Quote*) Please note that Joomla 5 is not yet a final version and the functionality of jDownloads could not yet be tested in all areas of Joomla 5. If you have problems, please activate the compatibility plugin of Joomla 5.

What do you mean with 'CODE tab'? Could you upload a screenshot?
Title: Re: HTML Tagsare being removed when i save
Post by: josh on 16.10.2023 21:38:07
In JCE you have CODE, EDITOR, PREVIEW tabs
if i add the html tags, any tags it does not matter. in the code windows.
then click to editor view, it previews it correctly.
when i save the download, all the tags have been removed.
I i do thesame in an article, all is fine,
So it would suggest that jdownloads is filtering out when saving.

If i create a simple article with tables, images etc.
then click the code tab, copy all te html code generated, ten paste this in the jdownload long description, it appears fine until i save, then all the html is removed.

So its not just aseting then..

Title: Re: HTML Tagsare being removed when i save
Post by: Arno on 16.10.2023 21:41:25
Okay, thanks. I will check this tomorrow.
Title: Re: HTML Tagsare being removed when i save
Post by: josh on 16.10.2023 21:48:37
if in code i put

<table style="background-color: #232c48;">
<tbody>
<tr>
<td>&nbsp;<img src="images/64bit_round_small.png" alt="64bit round small" /></td>
<td><span style="color: #ffff00; font-size: 36pt;">&nbsp;JUST SOME TEXT</span></td>
</tr>
<tr>
<td><span style="color: #ffff00; font-size: 24pt;">&nbsp;AND SOME MORE TEXT</span></td>
<td>&nbsp;<img src="images/banners/banner.jpg" alt="banner" width="1140" height="600" /></td>
</tr>
</tbody>
</table>


it displays fine
when i save it reduces it to

<p>&nbsp; &nbsp;JUST SOME TEXT &nbsp;AND SOME MORE TEXT &nbsp;</p>


Just checkd,
same behaviour with tinymce
Title: Re: HTML Tagsare being removed when i save
Post by: Arno on 16.10.2023 22:27:32
Hi,
sorry for this small error. It happened to me in the last version.  ::)
Please copy the attached file into the folder administrator/components/com_jdownloads/forms/
and overwrite the old file version.

I will publish in the next days an update with this fix.

Edit:
It now takes over the setting of the global Joomla text filter (global configuration) again.
Title: Re: HTML Tagsare being removed when i save - [Fixed in 4.0.36]
Post by: josh on 16.10.2023 22:35:19
Hi

Dowmloaded and applied.

Just tested, all seems to be fine now. :) :)

Thanks.