Opened 12 years ago
Last modified 12 years ago
#11765 confirmed Bug
Editor does not show in divreplace sample, when clicked between paragraphs.
| Reported by: | Marek Lewandowski | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 4.0 |
| Keywords: | Cc: |
Description
Div is not replaced with editor when you'll click inbetween paragraphs. It's minor issue but can mess up user UX, if he'll click in such place for the very first time.
- open divreplace sample (divreplace)
- click on space between two paragraphs
Expected result:
Editor should be created.
Current result:
Nothing happens.
additional info:
| ev.srcElement will point to div (with class editable). Therefore first iteration will check against body, rather than div. Code is located in samples/divreplace.html. |
Change History (2)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
| Status: | new → confirmed |
|---|---|
| Version: | → 4.0 |
Problem can be reproduced from the very beginning CKE 3.0.

Editor does not show in divreplace, when clicked between paragraphs.
Div is not replaced with editor when you'll click inbetween paragraphs. It's minor issue but can mess up user UX, if he'll click in such place for the very first time.
Expected result:
Editor should be created.
Current result:
Nothing happens.
additional info:
element.parentNodefrom the very first iteration. If you click in position given above, theev.target || ev.srcElementwill point to div (with class editable). Therefore first iteration will check against body, rather than div. Code is located in samples/divreplace.html.