-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.6, 3.11.8, 4.0.2
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-74492-Atto_UL_fix -
The Atto editor is misinterpreting the <line> tag inside an <svg> graphic as <li> item and thus creates a surrounding <ul> environment. The error comes from a too generic regex in clean.js.
I suggest changing the regexp to
<(\/?)(li(?!ne)|ul|ol)[^>]*>
so that line tags are not matched.
Example: Open Atto Editor and switch to HTML mode. Enter the following text:
<svg width="100" height="100">
<line x1="0" y1="0" x2="100" y2="100"></line>
<svg>
Switch to normal mode. No image is shown. Then switch back to HTML mode and see that the text has been changed to:
<svg width="100" height="100">
</svg>
<ul>
<line x1="0" y1="0" x2="100" y2="100"></line>
</ul>
<svg>
- is a regression caused by
-
MDL-52724 Atto does not generate UL tags when pasting LI tags
- Closed