Class RichTextEditorImportWord
A class used for configuring the import of Word documents into the SfRichTextEditor. This class enables the integration of Word document content within the Rich Text Editor.
Inheritance
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class RichTextEditorImportWord : OwningComponentBase
Constructors
RichTextEditorImportWord()
Declaration
public RichTextEditorImportWord()
Properties
ServiceUrl
Gets or sets the service URL for uploading a document to the server, which will then be imported into the Rich Text Editor.
Declaration
public string ServiceUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String | The service URL as a System.String for uploading documents to the server. The default value is |
Remarks
The ServiceUrl
should point to a server endpoint capable of processing Word document uploads intended for import.
This setup ensures that Word documents can be seamlessly integrated into the Rich Text Editor interface.
Examples
This example demonstrates how to configure the ServiceUrl
:
<SfRichTextEditor>
<RichTextEditorImportWord ServiceUrl="@importWordServiceUrl" />
</SfRichTextEditor>
@code {
private string importWordServiceUrl = "Enter the service URL here";
}
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()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |