Opened 8 years ago

Last modified 8 years ago

#14872 confirmed Bug

[Firefox] Insert cell before then after

Reported by: Tomasz Jakut Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.0
Keywords: Cc:

Description

Steps to reproduce

  1. Open http://ckeditor.com/demo#full.
  2. Open source mode and paste:
    <table border="1">
    	<tbody>
    		<tr>
    			<td>Cell 1.1</td>
    			<td>Cell 1.2</td>
    		</tr>
    	</tbody>
    </table>
    
  3. Switch back to WYSIWYG mode.
  4. Select both cells.
  5. Click right menu button. Choose "Cell" → "Insert Cell Before".
  6. Click right menu button once more. Choose "Cell" → "Insert Cell After".

Expected result

  • The first new cell is inserted at the beginning.
  • The second new cell is inserted after the first cell.

Actual result

  • The second new cell is inserted before the first cell.

It seems to be caused by the fact that the selection's offsets after inserting new cell are not updated and pointing to the new cell instead of the existing one.

Other details (browser, OS, CKEditor version, installed plugins)

Firefox 48.0 on Ubuntu 16.04

Change History (1)

comment:1 Changed 8 years ago by Tomasz Jakut

Status: newconfirmed
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