Enum RichTextEditorEnterKeyBehavior
Specifies the HTML element type generated when the Enter key is pressed in the SfRichTextEditor.
Namespace: Syncfusion.Maui.RichTextEditor
Assembly: Syncfusion.Maui.RichTextEditor.dll
Syntax
public enum RichTextEditorEnterKeyBehavior
Fields
| Name | Description |
|---|---|
| BR | Creates line break (<br>) elements when Enter key is pressed. Results in single-line breaks without creating new block elements. |
| DIV | Creates division (<div>) elements when Enter key is pressed. Useful for layouts that require block-level containers without paragraph semantics. |
| P | Creates paragraph (<p>) elements when Enter key is pressed. This is the default and recommended mode for semantic HTML structure. |