The aim of the component is to facade all the browser differences concerning the behaviour when the user hits the Enter, the Shift+Enter or the Control+Enter combination. And this is by far not an easy task since the differences between the browsers are enormous.
Every formatting infos like underline, bold, text color, text size etc. are transferred to the new paragraph. It is likely that the user expects to write on with the same configuration/modifications he applied to the former paragraph.
A paragraph in always aligned completely - the way a word processor also work. This can be irritating at the first time of use if e.g. a paragraph contains multiple lines of text each separated by normal line-breaks, but concerning alignment the paragraph is treated only as whole. So every line of the paragraph (=the whole paragraph) is aligned and not only the line the cursor is currently located.
The HtmlArea offers you two properties to customize the paragraph handling globally and thus customize the behaviour of the component.
The default value of this property is true. It controls whether a new paragraph or a normal line-break is inserted when hitting the Enter key. Since the default behaviour of all word processors is to insert a new paragraph it is recommended to leave this property value with its default.
Note
As every word processor the HtmlArea also supports inserting a normal line-break by using the key combination Shift+Enter
This property also has a default value of true. Since some users are familiar with the key combination Control+Enter to insert a normal line-break the HtmlArea component does support this. So in the default setup Control+Enter and Shift+Enter will end up with the same result.
Currently the HtmlArea does only take control and manage the paragraphs on its own if
If the HtmlArea with its paragraph handling takes control, the following actions are taken.
The following string is applied with the "insertHtml" command