Opened 4 years ago

Last modified 4 years ago

#10598 confirmed Bug

ck editor in iframe in firefox inserts two line breaks and a nbsp on enter

Reported by: Stjepan Rajko Owned by:
Priority: Normal Milestone:
Component: Core : Keystrokes Version: 4.0
Keywords: Cc:

Description

If you go to http://jsfiddle.net/r9HCt/ (which displays the ck editor demo page in an iframe), and hit enter inside of the editor, it will result in two line breaks and a space. The line breaks will be before the cursor, and the space will be after it.

Browsers other than Firefox don't seem to have the same problem (they only insert one line break). The demo page alone outside of the iframe works correctly on Firefox.

Tested on Firefox 22.0

Attachments (1)

test.html (326 bytes) - added by Jakub Ś 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by Jakub Ś

Attachment: test.html added

comment:1 Changed 4 years ago by Jakub Ś

Status: newconfirmed
Version: 4.1.24.0

I was able to reproduce this with demo page and nightly version. I have tried local samples and didn't get this problem so it seems to only work with local editor. Problem can be reproduced from CKEditor 4.0.

Two paragraphs are inserted after cursor and BR is inserted before it.

comment:2 Changed 4 years ago by Rainer Rainhold

I had the same problem as discribed, CKE on iframe (in my case it's a canvas App iframe on Facebook) in Mozilla inserts extra paragraph's and even extra <li> when using <ol> or <ul> tag. Is someone has an idea how to fix it?

comment:3 Changed 4 years ago by Ferdinand Harmsen

Same problem here

comment:4 Changed 4 years ago by Jakub Ś

A concern about fixing this issue was raised on our support channel.

comment:5 Changed 4 years ago by Jakub Ś

NOTE: I have checked this problem on native iframes and only single line-break occurs there.

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