Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.2
-
Fix Version/s: None
-
Component/s: Course
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
We've discovered that when using the HTML editor to update a label or a topic/week summary, if the HTML is manually input and the tags are not closed, then there is no ability (once saved) to go back in and edit the broken tag.
This was caused by an incomplete image tag copied and pasted by the instructor into the HTML editor (toggled in HTML mode) - <img src="http://example.edu/~teacher/images/blackcat.gif /> - note that the " is missing at the end of blackcat.gif - this caused the editor to break.
Old htmlarea can not handle all possible invalid tags that people can paste and save...
Although the edit icon does not work you have still a couple of ways to edit the label or summary. For example check some working label or summary from the same course and you should find an address like http://yourmoodle/course/editsection.php?id=xx where you can try to change the value xx and after some trials you should guess/find the correct value. Or you can use phpmyadmin and find for example from table mdl_course_sections the correct field and edit it directly with phpmyadmin. Read for example http://moodle.org/mod/forum/discuss.php?d=90459
One way to avoid this kind of situations is to use image plugin (icon in toolbar)... it usually does not mess up code.