X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   html 5 download attribute (https://forum.x-cart.com/showthread.php?t=75022)

madhatter717 02-23-2017 09:35 AM

html 5 download attribute
 
Hi xcart team,

How can I get the html 5 download attribute to work in the wysiwyg?

I have entered this code into the wysiwyg :

<p><a href="/46marketingguide.pdf" download> test download</a></p>

and the wysiwyg "cleans" or purifies the download attribute from the codebase.

In our config.php file I have HTML.Trusted = On which should allow all html attributes to be allowed, so why isnt the download attribute being recognized and what is the work around for this?

also we are using xcart business v5.2.14 so if you could give me an answer for that version i would appreciate it.

thanks in advance

maddhatter717

qualiteam 02-24-2017 07:19 AM

Re: html 5 download attribute
 
As far as I know it is the TinyMCE library that removes the tags, not XC5 itself.

It was reported to the XC5 team, but no progress was made on that ticket since then (I think this issue has a low priority as the team is focused on the 5.3.x version and fixes only major problems that affect lots of 5.2.x users).

However, you can fix it by creating a custom module and adding extra parameters to the tinymce.init() function as was suggested there or there.


All times are GMT -8. The time now is 05:12 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.