Closed
Bug 173480
Opened 23 years ago
Closed 23 years ago
Copying portion of one line of text from one text style and pasting into another results in a whole new line with the original style, even splitting lines of the target style
Categories
(Core :: DOM: Editor, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: david, Assigned: mozeditor)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
Composed messages can have multiple text styles, eg "Body Text", "Preformat".
However if you copy a piece of text, eg a single word from an area of one text
style and paste it into an area of another text style, rather than being
remapped to the new text style, that text gets inserted as a whole new line on
its own in its original text style - and can even split lines of the text style
into which it is being pasted.
This is very counter-intuitive - I haven't seen any other text editors with this
behaviour.
Reproducible: Always
Steps to Reproduce:
1.open a blank message compose window
2.type "blah blah" on one line, then "hello there" on the next line - these
lines would default to style "Body Text"
3.highlight the "hello there" and change its style to Preformat
4.now highlight "there" and copy that text
5.now paste it in between the words "blah" and "blah"
Actual Results:
You end up with three lines:
blah
there
blah
Expected Results:
Only one line:
blah there blah
Comment 1•23 years ago
|
||
over to editor team
Assignee: ducarroz → kin
Component: Composition → Editor: Core
Keywords: mailtrack
Product: MailNews → Browser
QA Contact: esther → sujay
| Assignee | ||
Comment 3•23 years ago
|
||
Known issue: For better of for worse, it was decided that "preformatted" was to
be treated as a style, and kept when pasting. Since <pre> is a block element,
it causes things to paste on seperate lines.
Workaround: set it to body text after pasting; or backspace from the front of it
to join it back into the body text; or use the forthcoming "paste without
formatting" (not landed yet).
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•