Jump to content

Question about enabling Tiny MCE Editing functions


brave200

Recommended Posts

My question relates to the instructions on enabling the Tiny MCE Editor at this link:

http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html

 

In the second part of the article you have to comment out two lines of code in the /classes/validate.php file. Those two lines of code are suppose to be this:

 
//if (preg_match('/<[ \t\n]*script/ims', $html) || preg_match('/('.$events.')[ \t\n]*=/ims', $html) || preg_match('/.*script\:/ims', $html))
//return false;

 

I am only able to find this line to modify? Am I in the right "validate.php" file? I have done an exact line search find for the above line and cannot find it. This line below is the closest match. I'm running version 1.5.6.1.

 

if (preg_match('/<[\s]*script/ims', $html) || preg_match('/('.$events.')[\s]*=/ims', $html) || preg_match('/.*script\:/ims', $html))
            return false;

 

Thanks again for the help!

Link to comment
Share on other sites

Hi Pascal,

 

I keep getting a blank page when I try and comment out those lines. Any ideas on what I might be doing wrong? I'm usually really good with editing these files. I've attached my "validation.php" file in its original form so you can take a look if possible? Thanks!

Validate.php

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...