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