ash84 Posted January 21, 2010 Share Posted January 21, 2010 Hello,If I try to call a JavaScript function into the HTML of a product description, i get error:the field description (English (English)) is invalidHow can I solve this? Thank you. Link to comment Share on other sites More sharing options...
rocky Posted January 22, 2010 Share Posted January 22, 2010 Javascript is disabled by default in TinyMCE for security reasons. If you are the only person who can edit content using the Back Office and know what you are doing, go to js/tinymce/jscripts/tiny_mce/tiny_mce.js, look for the "valid_elements" section and add script[language|type|src] to end like this to enable javascript. valid_elements:"@[id|class|style|title|dir Link to comment Share on other sites More sharing options...
jselva Posted February 15, 2010 Share Posted February 15, 2010 Hi Rocky, I try to find this your code, but, i have 1.2.5 prestashop version, your code is the same? all it's ok until"script[language|type|src]"I dont have this...I'm trying to install a video gallery, but i cant... Link to comment Share on other sites More sharing options...
rocky Posted February 15, 2010 Share Posted February 15, 2010 @jselvaIt normal for you to be missing that code. You are supposed to add it on the end so that TinyMCE doesn't remove <script> tags. Link to comment Share on other sites More sharing options...
jselva Posted February 15, 2010 Share Posted February 15, 2010 Thanks Rocky, but i cant...Appeare the same error,I attach my "tiny_mce.js"My shop is in Spanish, there isn't a problem, no?Thanks again. tiny_mce.js Link to comment Share on other sites More sharing options...
jselva Posted February 15, 2010 Share Posted February 15, 2010 Rocky, your module carrousel it's fantastic, but, when I download it from your website, download without the extension ".rar" Link to comment Share on other sites More sharing options...
rocky Posted February 16, 2010 Share Posted February 16, 2010 You've got your valid_elements set to * [ * ] for some reason. You can try replacing it with the above code, but if your existing code means that all elements are accepted, then your problem isn't caused by TinyMCE filtering the script. There must be another problem preventing the module from working.The extension should actually be .zip. This is a bug in Prestashop v1.2.5. I'll have to check whether it has been fixed in Prestashop v1.3 alpha 1. I'll report it to the bug tracker if it still doesn't work. Link to comment Share on other sites More sharing options...
Star Posted February 16, 2010 Share Posted February 16, 2010 Thanks Rocky, but i cant...Appeare the same error,I attach my "tiny_mce.js"My shop is in Spanish, there isn't a problem, no?Thanks again. If you know what you are doing. And you feel comfortable with the database. Enter the JS directly into the DB. That is what I did. http://www.blossomcart.com/Other-Bouquets/3025-hydrangeas.html insides the more detail tab... Link to comment Share on other sites More sharing options...
mandrin Posted March 3, 2010 Share Posted March 3, 2010 I still get "the field description (English (English)) is invalid" even though I added "script[language|type|src]"tinymca will not let me add javascript Link to comment Share on other sites More sharing options...
rocky Posted March 12, 2010 Share Posted March 12, 2010 Good news everybody! Prestashop v1.3 beta 1 now allows Javascript in the product description. We just have to wait for v1.3 final to be released before using it on a live shop. Link to comment Share on other sites More sharing options...
mandrin Posted March 13, 2010 Share Posted March 13, 2010 WOOT!!!! Awesome news! Link to comment Share on other sites More sharing options...
Flux Print Posted December 14, 2010 Share Posted December 14, 2010 Good news everybody! Prestashop v1.3 beta 1 now allows Javascript in the product description. We just have to wait for v1.3 final to be released before using it on a live shop. 1.3.2.3 still not supporting Javascript in editor. Any more ideas how to fix this error:the field description (English (English)) is invalid? We've done all that has been suggested here but still getting the same bloody message Heeeelp Link to comment Share on other sites More sharing options...
Recommended Posts