Open Bug 333471 Opened 19 years ago Updated 4 years ago

Editor collapses selection immediately after 'createLink', leading to faulty caret positioning on arrowkey.

Categories

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

defect

Tracking

()

UNCONFIRMED

People

(Reporter: ChristopherBalz, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 After using 'execCommand' to create a link with the 'createLink' command, the highlighting still shows on the screen but in fact the selection has been collapsed. Thus, the arrow keys, which should "skip over" the created link (since it is hightlighted), instead land inside the link. I see this behavior on other components of FF 1.5 but it is particularly bad on the Editor, since users creating links will end up typing in the link by accident because of this bug. Also, it generally lowers the usability of the editor. The JavaScript code workaround for it is also heavy and a pain to implement. Reproducible: Always Steps to Reproduce: After making a link, clicking the right arrow to get out of the highlight only moves you one character to the right, making it too easy to type in the middle of your linked word. To reproduce: * Go in to a rich-text editor instance. * Press the create-link button without making a text selection first. * Type or paste a URL * Type the word to be linked. * Press OK or enter Now using your keyboard, press the right arrow. Actual Results: The caret moves over one character, which is one character into the word you have linked. Expected Results: Your caret would move to be after the linked word. Only happens on FF 1.5.
I can see the bug you're describing in Composer. However, I can't make a testcase, using a designMode iframe. Are you able to create one?
QA Contact: editor
Assignee: mozeditor → nobody

Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.

If you have reason to believe, this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.