Search results

Inline Mode

This is the inline example for the RichTextEditor. For this, you must set the RichTextEditorInlineMode property.

Inline edition allows you to select any editable element or click the element on the page and edit it in-place.

Inline editing is a true WYSIWYG formation and on the contrary to RichTextEditor HTML/MD editing, the styles that are used for edited content comes directly from the document stylesheet. This means that inline editors ignore the default RichTextEditor content styles.

Show on select/click

Enabling the OnSelection option of RichTextEditorInlineMode makes the inline RichTextEditor to appear. You can select the text in the editable area, otherwise the inline RichTextEditor will be appeared after clicking the editable area.

@using Syncfusion.EJ2.Blazor
@using Syncfusion.EJ2.Blazor.RichTextEditor

<EjsRichTextEditor>
    <RichTextEditorInlineMode Enable="true" OnSelection="true"></RichTextEditorInlineMode>
    <p>The sample is configured with inline mode of editor. Initially, the editor is rendered without a
    <a href='https://ej2.syncfusion.com/home/' target='_blank'>toolbar</a>. The toolbar becomes visible only when the content is selected.</p>
</EjsRichTextEditor>

The output will be as follows.

Show Onselected

See Also