Closed Bug 164060 Opened 23 years ago Closed 23 years ago

Drop link into list item makes cursor jump to next item

Categories

(Core :: DOM: Editor, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: akkzilla, Assigned: mozeditor)

Details

(Whiteboard: EDITORBASE+; fixinhand; need r=,sr=)

Attachments

(1 file)

This is a regression from moz 1.0 in writing my status reports: Start a list item, then drag a link from a browser window to the end of the list item line in composer. After the drop, type a few words. In 1.0, after the link drop, the caret is positioned after the link, but outside it: the new words typed are not in the link. This makes it very easy to drag a bug link then type some text about what the bug is about or what I've done on it this week, or even a period to end the sentence. In the trunk, starting immediately after the 1.0 branch, when the link is dropped, the caret jumps to the next line (the next list item if there is one, otherwise completely outside the list); if I do backarrow or click at the end of the list to place the caret where it ought to be, the caret is now inside the link, so I have to do (the undiscoverable) Discontinue Link in order to type any comments about the bug. So this is two issues: (1) After a drop the caret should be positioned after the drop but outside it. (2) Setting the caret to the end of a line that ends with a link should put the caret outside the link, not inside it. (There may already be another bug tracking this; I know there was once, but it may have been fixed and then regressed.)
EDITORBASE+ per discussion at editor meeting.
Whiteboard: EDITORBASE+
Status: NEW → ASSIGNED
Summary: Drop line into list item makes cursor jump to next item → Drop link into list item makes cursor jump to next item
Target Milestone: --- → M1
more forgiving selection tweaking. Allow selection to be "next to" a text node as well as inside one.
Whiteboard: EDITORBASE+ → EDITORBASE+; fixinhand; need r=,sr=
note to self: fix ws alignment in the diff
Comment on attachment 102471 [details] [diff] [review] patch to nsHTMLEditRules.cpp sr=kin@netscape.com Just fix the indentation problems you mentioned above. I'm assuming there is a reason why we don't have to adjust the selection in the case when we find a prior/next text node?
Attachment #102471 - Flags: superreview+
Duh, forget about my question above.
fixed on trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: sujay → sairuh
for the most part, this bug is fixed (tested with 3/3 bits on win2k and linux, 2/28 bits on mac). found an issue with d'n'd of links, but i'll verify this. the new issue is bug 195811.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: