Closed Bug 294164 Opened 20 years ago Closed 10 years ago

Mail Compose default to inserting paragraphs on Enter

Categories

(MailNews Core :: Composition, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 330891

People

(Reporter: ilya.konstantinov+future, Unassigned)

References

Details

As a follow-up to bug 92686:
The behavior of Mail Compose should be changed so that Enter starts a new
block-level element instead of inserting a BR.
(The code to facilitate this was already commited to editor in bug 92686.)

Only block level elements (e.g. DIV, P) may have BiDi Paragraph direction in
HTML. Paragraph direction is an important property of BiDi text in documents and
email correspondense.

This behavior is also the de-facto standard.
For example, Outlook Express inserts DIVs on Enter and BRs on Shift-Enter. By
inserting DIVs instead of Ps, they avoid the inherent top/bottom-margin of Ps.
Summary: Mail Compose default to inserting paragraphs on Enter → Mail Compose default to inserting paragraphs on Enter
I don't have a tree for Thunderbird.  You should be able to do whichever
behavior you prefer by making the appropriate call to the editor (wherever you
do editor initialization); something like:
  htmleditor.returnInParagraphCreatesNewParagraph = false;
Hardware: PC → All
Assignee: mscott → nobody
Severity: normal → enhancement
Component: Message Compose Window → MailNews: Composition
Product: Thunderbird → Core
Version: unspecified → Trunk
QA Contact: composition
Product: Core → MailNews Core
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.