drumslist Posted June 11, 2010 Share Posted June 11, 2010 Trying to install a video player using javascript in my tiny mce editor for the small product description and the javascript is not being displayed.the following code gets inserted after saving off the tiny mce: Any ideas?Thanks very much Link to comment Share on other sites More sharing options...
rocky Posted June 12, 2010 Share Posted June 12, 2010 By default, PrestaShop strips all HTML code from the short product description. You'll need to change the following on line 9 (in PrestaShop v1.3) of product-list.tpl in your theme's directory from: <a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}">{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} to: <a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'}">{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} Link to comment Share on other sites More sharing options...
drumslist Posted June 12, 2010 Author Share Posted June 12, 2010 thanks very much Rocky -- I'll give that a whirl Link to comment Share on other sites More sharing options...
drumslist Posted June 13, 2010 Author Share Posted June 13, 2010 Hi Rocky,I removed the strip_tags:'UTF-8 regarding your code reference but I am still unable to process any js. Can you think of anything else I might be missing? Thanks very much,Andy Link to comment Share on other sites More sharing options...
rocky Posted June 14, 2010 Share Posted June 14, 2010 What version of PrestaShop are you using? In PrestaShop v1.3, you are allowed to put Javascript in descriptions, but in PrestaShop v1.2.5 and earlier, you are not allowed to put Javascript in descriptions. Link to comment Share on other sites More sharing options...
guest* Posted October 30, 2010 Share Posted October 30, 2010 How can I add Javascript on CMS-pages ? I'm having the same problem, that JS is corrupted (by TinyMCE editor or something else). Link to comment Share on other sites More sharing options...
Adam Uy Posted December 17, 2015 Share Posted December 17, 2015 is this the same with ps 1. 6? Link to comment Share on other sites More sharing options...
Azoda.net Posted December 17, 2015 Share Posted December 17, 2015 you can try <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'}">{$product.description_short|truncate:360:'...'}</a></p> Link to comment Share on other sites More sharing options...
Recommended Posts