Best practice forum (Archived)

issue about html editor can not delete a picture and solution

 
Jinchao Jiang
issue about html editor can not delete a picture and solution
by Jinchao Jiang - Tuesday, 13 March 2012, 12:15 AM
 

There is a problem after the version of Totara1.1.The version before Totara1.0.x doesn't  have it.

If you want to delete the pictures that have been uploaded while you scan pictures by click [Insert / Edit Picture] button in  html editors, you will find that the   select picture is not deleted after the page refreshes .

The Debugging found it's a  Totara bug.

Solution is:

Modify the file : \lib\editor\tinymce\coursefiles.php 574 line

if (file_exists ($ basedir. $ clean_val))

Changed it  to

if (file_exists ($ basedir. '/'. $ clean_val))

Simon Coggins
Re: issue about html editor can not delete a picture and solution
by Simon Coggins - Tuesday, 13 March 2012, 1:51 PM
Group Totara

Hi,

Thank you for the bug report - I can confirm I am seeing the same issue, although the fix you propose does improve things (you are prompted to confirm) it still doesn't actually delete it if you say yes.

We'll look into it further and get a fix into the next release.

Simon

? ?
Re: issue about html editor can not delete a picture and solution
by ? ? - Monday, 2 April 2012, 9:07 PM
 

Hi folks,

I'm pleased to report that a fix for this issue is included in today's (3rd April 2012) release of version 1.1.14

Ciaran