-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
2.9, 3.1
-
MOODLE_29_STABLE, MOODLE_31_STABLE
-
MDL-48905-master -
If you have HTML which contains an indented blockquote tag (the blockquote being inside the indent), then atto's outdent removes the blockquote before it removes the outdent.
This is because all indents are converted to blockquotes, and then the outdent execCommand is called, which removes the inner-most blockquote tag. We then convert the remaining blockquotes back to divs.
With Chrome this also will destroy div elements that have been inserted. For example include this HTML
<div class="editor-indent" style="margin-left: 30px;"><div><p>paragraph one</p></div><div><p>paragraph two</p></div><div><p>paragraph three</p></div></div>
|
Select one or more lines and outdent.
Expected behaviour: Comple div element is outdented (indent removed)
Actual behaviour: Div is removed from selected lines, only selected lines are outdented, inconsistent formating is applied.