Opened 10 years ago

Last modified 10 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.

  1. open divreplace sample (divreplace)
  2. click on space between two paragraphs

Expected result:
Editor should be created.

Current result:
Nothing happens.

additional info:

The reason for this issue is iterating element.parentNode from the very first iteration. If you click in position given above, the ev.target
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 10 years ago by Marek Lewandowski

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.

  1. open divreplace sample (divreplace)
  2. click on space between two paragraphs

Expected result:
Editor should be created.

Current result:
Nothing happens.

additional info:

  1. The reason for this issue is iterating element.parentNode from the very first iteration. If you click in position given above, the ev.target || 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.
  2. Tested with Chrome @ Win7

comment:2 Changed 10 years ago by Jakub Ś

Status: newconfirmed
Version: 4.0

Problem can be reproduced from the very beginning CKE 3.0.

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