Closed Bug 200418 Opened 22 years ago Closed 22 years ago

No way to put the caret on an empty line

Categories

(Core :: DOM: Editor, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: barrowma, Assigned: KaiE)

Details

(Keywords: topembed+, Whiteboard: EDITORBASE, edt_b3, edt_c3, edt_x3)

Attachments

(1 file)

This sample shows an empty line (between "FOOBAR" and "AFTER"), but the caret cannot be placed on that line. If you delete the empty line by hitting backspace, it goes away, but returns again when you hit to successive Enters. To reproduce: 1. open attachment in editor 2. caret down and up, and notice that caret never goes to the empty line between "FOOBAR" and "AFTER" **This is a bug** 3. delete this line by placing caret to left of "AFTER" and hitting Backspace (you may have to hit Backspace twice) 4. Now hit Enter again to re-insert the blank line. "AFTER" will move down as expected, and you can move the caret to the new blank line. 5. Now hit Enter again to insert another blank line. "AFTER" will move down as expected, so now you have two blank lines. But when you use the up arrow key, you will only be able to place the caret on one of the blank lines, and it will skip the other one. **This is a bug**
Attached file sample showing blank line problem (deleted) —
Possibly related to bug 200417. Also possibly related to bug 192320.
Whiteboard: EDITORBASE
This bug is not related to that other checkin. I can reproduce this bug with both Mozilla 1.3 and Mozilla 1.0
-> me
Assignee: jfrancis → kaie
Another behaviour: - Open the attached test case - Place caret on the first character of last line, i.e. before the "After". - hit cursor-up Expected behaviour: Cursor moves up one line Actual behaviour: Cursor jumps three lines up, to the end of the first line.
Keywords: topembedtopembed+
Whiteboard: EDITORBASE → EDITORBASE, edt_b3, edt_c3, edt_x3
The blank line is vertical margin space between paragraphs. This margin is not selectable - it's not an editable area. This is why we don't use paragraphs by default inthe editor.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: