If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

pasting preformat text puts cursor one line above the end of the pasted content




14 years ago
11 years ago


(Reporter: asa, Unassigned)



Firefox Tracking Flags

(Not tracked)




14 years ago
Tested on windows and linux 1.7 branch builds from today. Also impacts
Thunderbird 0.6.

If you paste preformatted text into an html message compose window or Mozilla
Composer, the cursor is placed at the end of the second to last line of text
rather than the end of the pasted text. 

Steps to reproduce: 
1. select the three lines of example text below. 
2. copy to clipboard.
3. paste into a Composer or HTML message compose window. 

Results: Cursor appears at the end of the second line of pasted text.
Expected: Cursor appears at the end of the third line or on a new row. 

Example text: 

This is some example text. 
The cursor will appear here ->
The cursor should appear here.

Comment 1

13 years ago
*** Bug 251895 has been marked as a duplicate of this bug. ***

Comment 2

13 years ago
This happens if the pasted text includes the <pre> formatting, and also happens 
for unformatted text being pasted in where the editor's style has been set for 

Asa, was this a regression?

Comment 3

13 years ago
(In reply to comment #2)
> Asa, was this a regression?

IIRC this wasn't a regression (i did some testing and this seems broken since
this feature was introduced, the feature being the cursor being placed at the
end of the pasted content).
QA Contact: bugzilla → editor
Assignee: mozeditor → nobody
You need to log in before you can comment on or make changes to this bug.