Skip to content

Commit

Permalink
Ad manual test to prove #4931 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sculpt0r committed Aug 2, 2022
1 parent a065e07 commit a50cb16
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/core/selection/manual/optimizationlist.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<h2>Iframe editor</h2>
<div id="editor1">
<ol>
<li>1</li>
<li>2
<ol>
<li>1</li>
</ol>
</li>
<li>&nbsp;</li>
</ol>

</div>

<h2>Divarea editor</h2>
<div id="editor2">
<ol>
<li>1</li>
<li>2
<ol>
<li>1</li>
</ol>
</li>
<li>&nbsp;</li>
</ol>

</div>

<script>
if ( bender.tools.env.mobile ) {
bender.ignore();
}

CKEDITOR.replace( 'editor1' );

CKEDITOR.replace( 'editor2', {
extraPlugins: 'divarea',
} );
</script>
13 changes: 13 additions & 0 deletions tests/core/selection/manual/optimizationlist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@bender-tags: selection, 4.19.2, bug, 4931
@bender-ui: collapsed
@bender-ckeditor-plugins: wysiwygarea, toolbar, elementspath, sourcearea, list, undo, div, table, image, basicstyles, format


1. Select entire content via `Ctrl+A`
2. Delete content with backspace key.

**Expected** The entire list is removed from the editor

**Unexpected** There are list leftovers in the editor

3. Repeat steps in the second editor

0 comments on commit a50cb16

Please sign in to comment.