Opened 9 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
- Focus on instance of CKEditor.
- Type ' Example'.
- Set breakpoint on event that is fired when edit is finished.
- Finish edit.
- call from DevTools -> instance.getData()
- result -> " Example"
- call from DevTools -> instance.document.$.activeElement.textContent
- result -> " Example"
- For now everything seems ok.
- Start editing again.
- Don't change anything and finish edit again.
- Breakpoint is fired
- call from DevTools -> instance.getData()
- result -> "Example"
- call from DevTools -> instance.document.$.activeElement.textContent
- 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
Component: | Core : Output Data → General |
---|---|
Keywords: | leading whitespace removed |
Status: | new → pending |
Version: | 4.5.7 |
comment:2 Changed 8 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
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.