Opened 7 years ago

Last modified 7 years ago

#8375 confirmed Bug

onfocus: Input text selection not cleared in Chrome

Reported by: Kin-Hong Wong Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Webkit VendorFix Cc:

Description

This problem only happens on Google Chrome.

I have a ckeditor on a page that also contains one or more input text fields. If I type something and select/highlight the words in one of the input text field, then click inside the ckeditor, you will notice the selection/highlight of the input text field is not cleared.

You can reproduce this behavior by going to ckeditor demo page (http://ckeditor.com/demo) using Google Chrome browser, type and select "ABC" in the "Search..." box, then click inside the ckeditor so it has the focus. You will see that "ABC" is still selected/highlighted.

Attachments (1)

selectNotCleared.png (176.7 KB) - added by Kin-Hong Wong 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Kin-Hong Wong

Attachment: selectNotCleared.png added

comment:1 Changed 7 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

CKEditor's contents area is new html document placed inside iframe.

If you place input filed and iframe in one page and apply the above TC you will get the same results. This is just how Webkit reacts and is not CKEditor's bug.

comment:2 Changed 7 years ago by Jakub Ś

Resolution: invalid
Status: closedreopened

comment:3 Changed 7 years ago by Jakub Ś

Status: reopenedconfirmed
Version: 3.6.13.0

This works both ways. When you select something inside editor, then click outside it the grayed selection (shadow of selection) will also stay. This may give false impression that text is still selected and you can copy or delete it.
Of course when doing so it won't work. What is more backspace key will work as back button.

comment:4 Changed 7 years ago by Jakub Ś

Keywords: Webkit VendorFix added

This is something that Webkit will have to fix on their side.

Link to ticket on Webkit - https://bugs.webkit.org/show_bug.cgi?id=73294.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy