AUTHOR: Rumen Zhekov
DATE POSTED: August 10, 2018
After the end user hits the enter key, the first line is shifted down in the content area in Chrome
When the user starts editing the contents, the first line is on the top. But after he hits the enter key, the line will be moved down and shows a lot of top margin. The observed behavior happens in Chrome, when the editor is configured to insert paragraphs on enter key (NewLineMode="P"). The browser injects the following Chrome specific styles for P elements, which shifts the paragraph tag because of the applied -webkit-margin-before style:
p {
display
:
block
;
-webkit-margin-before:
1em
-webkit-margin-after:
-webkit-margin-start:
0px
-webkit-margin-end:
}
<
telerik:RadEditor
runat
=
"server"
NewLineMode
"P"
ID
"RadEditor1"
>
CssFiles
telerik:EditorCssFile
Value
"~/Content.css"
/>
</
Content
>some content</
0
!important
You can find more ways to customize the content area appearance in the following online resources:
Resources Buy Try