Opened 4 years ago

Last modified 4 years ago

#7325 confirmed Bug

Webkit: backspace moves content between p tags (instead of merging them)

Reported by: db Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4.2
Keywords: WebKit Cc: dane@…

Description

I wasn't sure how best to summarize this in the title, but here's how to repro this using Safari or Chrome on www.ckeditor.com/demo:

  1. Enter the following using shift+enter/enter as indicated:

one[shift+enter]two[enter]three[shift+enter]four

This results in two <p> tags with <br /> tags where you pressed shift+enter (as expected):

<p>one<br />two</p><p>three<br />four</p>

  1. Move the cursor before "three" and hit backspace

Expected result:

<p>one<br />twothree<br />four</p>

I.e., Merge the two <p> tags.

Actual result:

<p>one<br />twothree</p><p>four</p>

I.e., Still two <p> tags, but part of the second <p> tag has been moved into the first.

I've tested this from 3.4.2 up until 3.5.2, but I suspect it probably goes back further.

This is reproducible in Chrome and Safari, but not in FF/IE/Opera, which makes me think it's Webkit-specific.

Attachments (3)

before.png (1.2 KB) - added by db 4 years ago.
Before
after_expected.png (1.2 KB) - added by db 4 years ago.
After expected (FF/IE/Opera)
after_actual.png (1.2 KB) - added by db 4 years ago.
After actual (Chrome/Safari)

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by db

Before

Changed 4 years ago by db

After expected (FF/IE/Opera)

Changed 4 years ago by db

After actual (Chrome/Safari)

comment:1 Changed 4 years ago by db

  • Cc dane@… added

comment:2 Changed 4 years ago by fredck

  • Keywords WebKit added
  • Status changed from new to confirmed

Confirmed with WebKit only.

Note: See TracTickets for help on using tickets.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy