Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

html 5 download attribute

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-23-2017, 09:35 AM
 
madhatter717 madhatter717 is offline
 

Member
  
Join Date: Oct 2016
Posts: 24
 

Default 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
__________________
x-cart business 5.2.14
Reply With Quote
  #2  
Old 02-24-2017, 07:19 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
madhatter717 (03-03-2017)
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:09 AM.

   

 
X-Cart forums © 2001-2020