Class EnterKeyTag
Specifies a tag to be used in the SfRichTextEditor component when the Enter key is pressed.
Inheritance
System.Object
EnterKeyTag
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class EnterKeyTag : Enum
Remarks
This setting determines which HTML tag will be automatically inserted when the Enter key is pressed.
Fields
BR
When the Enter key is pressed, a new line break <br> tag will be inserted.
Declaration
public const EnterKeyTag BR
Field Value
Type | Description |
---|---|
EnterKeyTag | The <br> tag, representing a line break. |
Remarks
Suitable for creating single line breaks between text.
DIV
When the Enter key is pressed, a new <div> tag will be inserted.
Declaration
public const EnterKeyTag DIV
Field Value
Type | Description |
---|---|
EnterKeyTag | The <div> tag, used for block divisions. |
Remarks
Useful for breaking up content without additional spacing.
P
When the Enter key is pressed, a new <p> tag will be inserted.
Declaration
public const EnterKeyTag P
Field Value
Type | Description |
---|---|
EnterKeyTag | The <p> tag, used for paragraphs. |
Remarks
Recommended for standard paragraph separation.