Opened 6 years ago

Last modified 6 years ago

#10047 confirmed Bug

FF: Replacing <Enter> with <Shift+Enter> results in extra <br />

Reported by: Chris Ingham Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Firefox Cc:

Description

Firefox only (not reproducible in IE10, Chrome24):

I type a line of text followed by Enter. Whoops - I meant to type Shift+Enter, so I hit Backspace followed by Shift+Enter. What gives? Now my cursor is two 'lines' down!

Here's what I type:

"A line of text", <Enter>, <Backspace>, <Shift+Enter>

And now my cursor is two <br /> down instead of just one.

Verified in the basic demo and the nightly Using the "Enter" key in CKEditor sample, where I can see that 2 <br /> have been inserted from my final single <Shift+Enter>.

I'm running Firefox 18.0.2.

Change History (1)

comment:1 Changed 6 years ago by Jakub Ś

Keywords: Firefox added
Status: newconfirmed
Version: 4.0.13.0

Problem can be reproduced in Firefox form CKEditor 3.0.

In Firefox in plain contenteditable div with P inside this is what you get after above TC:

<p>
txtd
<br>
<br type="_moz">
</p>

and this is what you get in editor:

<p>
txtd
<br type="_moz">
<br>
<br type="_moz">
</p>

When you switch to source you get two br tags.

Seems that this extra <br type="_moz"> may be causing problems here.

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