Class RichTextEditorInlineMode
A class used for configuring the SfRichTextEditor for inline editing. This class allows for a more compact editing interface by displaying the toolbar in a floating mode.
Inheritance
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class RichTextEditorInlineMode : OwningComponentBase
Examples
In the following code example, inline edit mode is enabled.
@using Syncfusion.Blazor.RichTextEditor;
<SfRichTextEditor>
<RichTextEditorInlineMode Enable="true" ShowOnSelection="false"/>
</SfRichTextEditor>
Constructors
RichTextEditorInlineMode()
Declaration
public RichTextEditorInlineMode()
Properties
Enable
Gets or sets whether to enable or disable the inline edit mode in the editor.
Declaration
public bool Enable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
When inline mode is enabled, the toolbar appears as a floating toolbar when the editable content is focused or selected, allowing for a streamlined editing experience directly within the text context.
ShowOnSelection
Gets or sets whether the inline toolbar is displayed upon selecting text or focusing on it.
Declaration
public bool ShowOnSelection { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
This setting determines whether the toolbar should be visible automatically upon text selection, aiding quick access to formatting options without disrupting the workflow.
Methods
Dispose(Boolean)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |