Opened 8 years ago

Closed 8 years ago

#14512 closed Bug (expired)

Missing leading spaces in response from getData() method

Reported by: Marcin Goławski Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc: golawskimarcin@…

Description

Steps to reproduce

  1. Focus on instance of CKEditor.
  2. Type ' Example'.
  3. Set breakpoint on event that is fired when edit is finished.
  4. Finish edit.
  5. call from DevTools -> instance.getData()
  6. result -> "            Example"
  7. call from DevTools -> instance.document.$.activeElement.textContent
  8. result -> "            Example"
  9. For now everything seems ok.
  10. Start editing again.
  11. Don't change anything and finish edit again.
  12. Breakpoint is fired
  13. call from DevTools -> instance.getData()
  14. result -> "Example"
  15. call from DevTools -> instance.document.$.activeElement.textContent
  16. result -> "            Example"

Variable 'instance' is the CKEeditor instance. As you see CKEeditor instances loose leading whitespaces.

Expected result

            Example

Actual result

Example

Other details (browser, OS, CKEditor version, installed plugins)

browser -> Google chrome, OS -> OS X 10.11.3 CKEditor version -> 4.5.7 Additional plugins -> justify

Change History (2)

comment:1 Changed 8 years ago by Jakub Ś

Component: Core : Output DataGeneral
Keywords: leading whitespace removed
Status: newpending
Version: 4.5.7

Can this issue be reproduced on our demo page or in default CKEditor?

What exactly do you mean by "Set breakpoint on event that is fired when edit is finished." or "Start editing again" and "Don't change anything and finish edit again"?
Which event are you taking about? What does it mean finish editing?
In default CKEditor you can edit all the time and there are many events fired depending what you are doing.

It really looks to me like you are pressing edit button in your application, editor pops out and you start typing there and next you save that data. If that is the case then I would strongly suggest looking at what is going on with your data when it is saved.

I have tried typing, getting data then destroying/creating editor, inserting data and getting it once more. Spaces were there.

Please provide more detailed explanation of the problem and please tell me how can I reproduce this in demo or default standalone CKEditor.

comment:2 Changed 8 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
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