Ticket #8884 (confirmed Bug)

Opened 2 years ago

Last modified 11 months ago

Dragging image wrapped in BlockElement leaves empty block elements in content area.

Reported by: j.swiderski Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

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

  1. Go to http://ckeditor.com/demo
  2. Drag image (which is wrapped in H1) in few places inside content area
  3. Switch to source and notice that there are many empty headers inside content area <h1>&nbsp;</h1>

I have also tried using the below code (img inside div)

<div>
	<img alt="" src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="margin-left: 10px; margin-right: 10px; float: left; width: 120px; height: 168px;" /></div>
  • In Chrome div completely is lost.
  • In Safari and Opera Div is lost on first drag. Wrapping div stays at the top and doesn't break paragraphs like H1.
  • in Firefox and IE8-10 orphan divs are left throughout content area

Issue reproducible in all browsers from CKEditor 3.0

Change History

comment:1 Changed 2 years ago by j.swiderski

This ticket is related to #8883. Same TC, similar results, different versions.

comment:2 Changed 2 years ago by j.swiderski

  • Status changed from new to confirmed

comment:3 Changed 2 years ago by j.swiderski

  • Description modified (diff)

comment:4 Changed 16 months ago by j.swiderski

In CKEditor 4.1 image is being dragged with h1 all the time. This can be checked in replace by code sample.

On each drag empty h1 is being left behind.

Last edited 16 months ago by j.swiderski (previous) (diff)

comment:5 Changed 16 months ago by j.swiderski

  • Keywords Firefox added
  • Description modified (diff)
  • Summary changed from Webkit: Dragging image wrapped in block element leaves empty block elements in content area. to Webkit & FF: Dragging image wrapped in Header Element leaves empty headers in content area.

comment:6 Changed 16 months ago by j.swiderski

#1696 was marked as duplicate.

comment:7 Changed 11 months ago by j.swiderski

  • Keywords Webkit Firefox removed
  • Description modified (diff)
  • Summary changed from Webkit & FF: Dragging image wrapped in Header Element leaves empty headers in content area. to Dragging image wrapped in BlockElement leaves empty block elements in content area.
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy