Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#13163 closed Bug (invalid)

[Firefox] Space typed at the end of paragraph is not returned by editor.getData()

Reported by: Inga Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0.2
Keywords: Firefox IBM Cc: Satya Minnekanti

Description

This is only reproducible on FF. Steps to reproduce:

  1. Go to http://nightly.ckeditor.com/15-04-10-06-08/full/samples/replacebyclass.html
  2. In the console type: CKEDITOR.instances.editor1.editable().on('keyup', function(){console.log(CKEDITOR.instances.editor1.getData())})
  3. Start typing in the editor -> You can see in the console that the first space after some text is ignored and not inserted in the Editor

Change History (7)

comment:1 Changed 9 years ago by Jakub Ś

Keywords: Firefox added
Status: newconfirmed
Version: 4.4.73.0.2

I have been able to reproduce this problem from CKEditor 3.0.2 in Firefox and IE8-11.

comment:2 Changed 9 years ago by Piotrek Koszuliński

This is a DUP of some older issues. Basically, browser engines are cheating - it inserts a normal space but shows it as a nbsp.

comment:3 Changed 9 years ago by Satya Minnekanti

Keywords: IBM added

comment:4 Changed 9 years ago by Jakub Ś

Perhaps a dup of this one #9978?

comment:5 Changed 9 years ago by Piotrek Koszuliński

Resolution: invalid
Status: confirmedclosed

No. #9978 is just about a keystroke, although I haven't read the whole discussion. I've looked for the DUP too and I found #12606. It is closed as invalid and in my opinion it makes sense. As you explained there, it works differently in Chrome and in FF and IE8-11. Both ways have their own problems, but I think that the Gecko way generates less problems. Touching this would be very risky. And most importantly:

  • the space is visible,
  • it happens only at the end of blocks.

BTW. There's also #7136 where I explained what's the general problem.

comment:6 Changed 8 years ago by Anna Tomanek

Summary: FF: When the remaining characters counter appears space is not causing the counter to decrease[FF] When the remaining characters counter appears, space is not causing the counter to decrease

comment:7 Changed 8 years ago by Piotrek Koszuliński

Summary: [FF] When the remaining characters counter appears, space is not causing the counter to decrease[Firefox] Space typed at the end of paragraph is not returned by editor.getData()
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy