Ticket #8445 (confirmed Bug)

Opened 3 years ago

Last modified 2 years ago

dialog.getSelectedElement() returns wrong element when element selected is within a table for 3.6.2, Firefox

Reported by: iverok Owned by:
Priority: Normal Milestone:
Component: Core : Selection Version: 3.6.2
Keywords: Cc:

Description (last modified by j.swiderski) (diff)

Observable for instance for a single image inside a table cell. The bug seems to be caused by the selected element being set to be the containing table element even though for instance the double-click event does get the correct element passed as its .data.element.

For a document containing something like (only):

<table>
	<tbody>
		<tr>
			<td>
				<img alt="Silva.jpg" src="/images/Silva.jpg" style="width: 100px; height: 133px;" /></td>
		</tr>
	</tbody>
</table>

reproduce the bug by double-clicking on the image. The image dialog opens, but is not initialized with the image data.

In general,

  1. right-clicking the image will not show the image context-menu;
  2. double-clicking the image will open the image dialog, but will not initialize the dialog correctly;
  3. clicking the image toolbar icon with the image selected will open the image dialog but uninitialized.
  4. Please also note that when you click on image - the elements path shows only body table. If you will try to click on border you will get body table tbody tr td. It is not possible to get img element there.

Change History

comment:1 Changed 3 years ago by j.swiderski

  • Status changed from new to confirmed
  • Version set to 3.6.2

Reproducible in Webkit, Firefox and Opera from CKEditor 3.6.2 rev [7243]

comment:2 Changed 2 years ago by j.swiderski

#8772 was marked as duplicate.

comment:3 Changed 2 years ago by j.swiderski

Other tickets caused by rev [7243]: #8632, #8475, #8493

comment:4 Changed 2 years ago by j.swiderski

  • Description modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy