Open Bug 1333127 Opened 8 years ago Updated 3 months ago

Contenteditable selection does not work inside of draggable

Categories

(Core :: DOM: Editor, defect, P3)

50 Branch
x86_64
macOS
defect

Tracking

()

People

(Reporter: aj.klein, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [h2review-noted])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36

Steps to reproduce:

HTML setup is a contenteditable div inside of a draggable div.

Enter text into the contenteditable div.
Click outside of that div to have it lose focus.
Click inside of the contenteditable div in the middle of the text entered.


Actual results:

The cursor was placed at the end of the text.


Expected results:

The cursor should have been placed in the middle of the text where you clicked.
OS: Unspecified → Mac OS X
Hardware: Unspecified → x86_64
Component: Untriaged → Editor
Product: Firefox → Core
Attached file 1333127.html
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Seeing this on a project I'm developing on in Firefox 58.0b3.  Does not seem to be any way around it without heavy DOM modification.  What's the status here?

This is still an issue with the latest Firefox. It existed in Chrome but has been fixed since 2013: https://bugs.chromium.org/p/chromium/issues/detail?id=170139

Whiteboard: [h2review-noted]
Severity: normal → S3
Duplicate of this bug: 1881528
See Also: → 1289000

FYI, you can click with ALT key pressed to place the cursor to the position that you clicked.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: