djhs Posted February 3, 2014 Share Posted February 3, 2014 Hi there, I'm trying to implement an audio player http://mediaelementjs.com/ in the short description but no success! I removed the restriction striptag / truncate on the field already. when inserting the <script> I always get the following error: The short_description field (English (United Kingdom)) is invalid. What's the way around that? Cheers J Link to comment Share on other sites More sharing options...
vekia Posted February 3, 2014 Share Posted February 3, 2014 what code you're trying to use? everything depends on it! Link to comment Share on other sites More sharing options...
djhs Posted February 4, 2014 Author Share Posted February 4, 2014 I'd like to use the following from mediaelement <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>HTML5 MediaElement</title> <script src="../build/jquery.js"></script> <script src="../build/mediaelement-and-player.min.js"></script> <script src="testforfiles.js"></script> <link rel="stylesheet" href="../build/mediaelementplayer.min.css" /> </head> <body> <audio id="player2" src="../media/AirReview-Landmarks-02-ChasingCorporate.mp3" type="audio/mp3" controls="controls"> </audio> <script> $('audio,video').mediaelementplayer(); </script> </body> </html> with the <head> in the header.tpl file, I guess that's the right place for that? and the following in the short description: <audio id="player2" src="../media/AirReview-Landmarks-02-ChasingCorporate.mp3" type="audio/mp3" controls="controls"> </audio> <script> $('audio,video').mediaelementplayer(); </script> all of it correctly linked to files on my server, this is mediaelement sample code. much appreciate your help! Link to comment Share on other sites More sharing options...
vekia Posted February 4, 2014 Share Posted February 4, 2014 <script> code isn't allowed in description fields. this is why you see error message while saving. in addition, if you use <doctype> once again (it is defined in header.tpl file already) it is also wrong. Link to comment Share on other sites More sharing options...
djhs Posted February 5, 2014 Author Share Posted February 5, 2014 in the header.tpl I only added the lines between the <head> and </head> in the sample above so that should be ok. how can you allow <script> in description or is there a way around that then? Cheers Link to comment Share on other sites More sharing options...
david41095 Posted February 7, 2015 Share Posted February 7, 2015 i had the same problem =( Somebody know how we can put a reproductor file in our product description? ty and sorry for my bad english Link to comment Share on other sites More sharing options...
eddz0r Posted February 19, 2015 Share Posted February 19, 2015 need this to. no one? Link to comment Share on other sites More sharing options...
Recommended Posts