Case description - past images - TinyMCE and HTMLPurifier


My current release is 7.9.4 in a fresh install.

When I paste an image to the case description (managed by TinyMCE, I think) and save it, the image is stripped.

I think that the problem is in the HTMLPurifier that remove my img tag from the html source.

I have seen that HTMPurifier defaults are written in [suitecrmpath]\include\clean.php but I have not found how customize this module to allow the img tag and the related attributes.

Can anyone help me?


After some searches on HTMLPurifier setup documentation, and several test, I have added in the [suitecrmpath]\include\clean.php config section, at line 102 line, the code:

	$config->set('URI.AllowedSchemes', array('data' => true)); // Damiano 14/08/2017

It work fine, for me.

Now the question is: what is the best practice to add this line of code in the clean.php to keep it in case of update? I am not a developer, I have search in the developer guide but I have not found it.