Opened 11 years ago

Last modified 11 years ago

#10812 closed Bug

Range#createBookmark2 incorrectly normalize offsets when element is selected — at Version 3

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone: CKEditor 4.2.2
Component: General Version: 4.2.1
Keywords: Cc:

Description (last modified by Piotrek Koszuliński)

Unit test can be found in t/10812.

Manual TCs:

TC1 (IE and sometimes FF)

  1. Load this HTML: <h1>Apollo 11<img alt="Saturn V carrying Apollo 11" src="assets/sample.jpg" /></h1>
  2. Select image and press align right.
  3. Undo.
  • Expected: image is selected after undoing (although selection may differ visually from the old one)
  • Actual: selection is lost.
  • Depending on the HTML I was sometimes able to reproduce this on FF too, but usually it only works on IE, because it keeps DOM clean.

TC2 (all browsers)

<table border="1" cellpadding="1" cellspacing="1" style="width:500px">
	<tbody>
		<tr>
			<td>a</td>
			<td>b</td>
		</tr>
		<tr>
			<td>c</td>
			<td>d</td>
		</tr>
	</tbody>
</table>
  1. Load the above HTML.
  2. Select table (using elements path).
  3. Apply bold.
  4. Try to undo.
  • Expected: entire table is selected after undoing.
  • Actual: selection is lost.

Change History (3)

comment:1 Changed 11 years ago by Piotrek Koszuliński

Status: newconfirmed

Pushed t/10812 with a test.

comment:2 Changed 11 years ago by Piotrek Koszuliński

Description: modified (diff)
Version: 4.2.1 (GitHub - master)

comment:3 Changed 11 years ago by Piotrek Koszuliński

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy