From e14c9fc388558be41fb862ba384c57640890ced5 Mon Sep 17 00:00:00 2001 From: VinothkumarYuvaraj Date: Fri, 14 Nov 2025 12:36:48 +0530 Subject: [PATCH 1/6] 990489: Add UG Documentation for the HttpClientInstance Support for Syncfusion Blazor Rich Text Editor - Blazor --- blazor-toc.html | 1 + .../rich-text-editor/http-client-instance.md | 63 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 blazor/rich-text-editor/http-client-instance.md diff --git a/blazor-toc.html b/blazor-toc.html index 9d01dcca15..ce2fea913b 100644 --- a/blazor-toc.html +++ b/blazor-toc.html @@ -4137,6 +4137,7 @@
  • Accessibility
  • WebAssembly Performance
  • Import and Export
  • +
  • http client
  • Editor Modes
  • Keyboard shortcuts
  • Miscellaneous
  • diff --git a/blazor/rich-text-editor/http-client-instance.md b/blazor/rich-text-editor/http-client-instance.md new file mode 100644 index 0000000000..1ac9bce035 --- /dev/null +++ b/blazor/rich-text-editor/http-client-instance.md @@ -0,0 +1,63 @@ +--- +layout: post +title: HttpClientInstance in Blazor RichTextEditor Component | Syncfusion +description: Checkout and learn here all about HttpClientInstance in Syncfusion Blazor RichTextEditor component and much more. +platform: Blazor +control: RichTextEditor +documentation: ug +--- + +# HttpClientInstance in Blazor RichTextEditor Component + +The Rich Text Editor component in Blazor enables you to utilize the `HttpClientInstance` property to append the custom HttpClient instance to all file upload requests. This approach offers flexibility in managing authentication and custom request configurations for Word Import, Word Export, "PDF Export and image/audio/video insertions. + +The following example illustrates how to configure the Rich Text Editor component with HttpClient in a Blazor application. + +```razor +@using Syncfusion.Blazor.RichTextEditor +@inject HttpClient httpClient + + + + + + + + + + +@code { + protected override async Task OnInitializedAsync() + { + // Adding authorization header to HTTP client + httpClient.DefaultRequestHeaders.Add("Authorization_1", "syncfusion"); + await base.OnInitializedAsync(); + } +} +``` + +## Program.cs + +```csharp +using Syncfusion.Blazor; + +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +builder.Services.AddRazorComponents() + .AddInteractiveServerComponents(); +builder.Services.AddSyncfusionBlazor(); +builder.Services.AddScoped(sp => +{ + var httpClient = new HttpClient + { + BaseAddress = new Uri("https://your_api.com/") + }; + + // Add custom header + httpClient.DefaultRequestHeaders.Add("Custom-Header", "YourCustomValue"); + return httpClient; +}); +var app = builder.Build(); + +``` From 24670d869aa37e5f9581e7580fbdf59e1143e79f Mon Sep 17 00:00:00 2001 From: VinothkumarYuvaraj Date: Fri, 14 Nov 2025 15:57:27 +0530 Subject: [PATCH 2/6] 990489: Add UG Documentation for the HttpClientInstance Support for Syncfusion Blazor Rich Text Editor - Blazor --- blazor-toc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazor-toc.html b/blazor-toc.html index ce2fea913b..add4ca8172 100644 --- a/blazor-toc.html +++ b/blazor-toc.html @@ -4137,7 +4137,7 @@
  • Accessibility
  • WebAssembly Performance
  • Import and Export
  • -
  • http client
  • +
  • Http Client
  • Editor Modes
  • Keyboard shortcuts
  • Miscellaneous
  • From a9226612079fe374eb057ac088957f67f7ffd0fe Mon Sep 17 00:00:00 2001 From: VinothkumarYuvaraj Date: Mon, 17 Nov 2025 11:13:28 +0530 Subject: [PATCH 3/6] 990489: Add UG Documentation for the HttpClientInstance Support for Syncfusion Blazor Rich Text Editor - Blazor --- blazor/rich-text-editor/http-client-instance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazor/rich-text-editor/http-client-instance.md b/blazor/rich-text-editor/http-client-instance.md index 1ac9bce035..01ba2c33dc 100644 --- a/blazor/rich-text-editor/http-client-instance.md +++ b/blazor/rich-text-editor/http-client-instance.md @@ -9,7 +9,7 @@ documentation: ug # HttpClientInstance in Blazor RichTextEditor Component -The Rich Text Editor component in Blazor enables you to utilize the `HttpClientInstance` property to append the custom HttpClient instance to all file upload requests. This approach offers flexibility in managing authentication and custom request configurations for Word Import, Word Export, "PDF Export and image/audio/video insertions. +The Rich Text Editor component in Blazor enables you to utilize the `HttpClientInstance` property to append the custom HttpClient instance to all file upload requests. This approach offers flexibility in managing authentication and custom request configurations for Word Import, Word Export, PDF Export and image/audio/video insertions. The following example illustrates how to configure the Rich Text Editor component with HttpClient in a Blazor application. From 627ba4c14bd6aa721c747899675a529220ce60f2 Mon Sep 17 00:00:00 2001 From: Aravind Date: Mon, 24 Nov 2025 15:01:05 +0530 Subject: [PATCH 4/6] 990489-: Modified content as per the review comments --- blazor/rich-text-editor/http-client-instance.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blazor/rich-text-editor/http-client-instance.md b/blazor/rich-text-editor/http-client-instance.md index 01ba2c33dc..c37c8b504a 100644 --- a/blazor/rich-text-editor/http-client-instance.md +++ b/blazor/rich-text-editor/http-client-instance.md @@ -9,7 +9,7 @@ documentation: ug # HttpClientInstance in Blazor RichTextEditor Component -The Rich Text Editor component in Blazor enables you to utilize the `HttpClientInstance` property to append the custom HttpClient instance to all file upload requests. This approach offers flexibility in managing authentication and custom request configurations for Word Import, Word Export, PDF Export and image/audio/video insertions. +The Rich Text Editor component in Blazor enables you to utilize the `HttpClientInstance` property to append the custom HttpClient instance to all file upload and download requests. This approach offers flexibility in managing authentication and custom request configurations for Word Import, Word and PDF Export and image/audio/video insertions. The following example illustrates how to configure the Rich Text Editor component with HttpClient in a Blazor application. @@ -55,7 +55,7 @@ builder.Services.AddScoped(sp => }; // Add custom header - httpClient.DefaultRequestHeaders.Add("Custom-Header", "YourCustomValue"); + httpClient.DefaultRequestHeaders.Add("Custom-Header", "YourCustomValue"); return httpClient; }); var app = builder.Build(); From e5af7b673642a394786ddf80fb088cddfd012118 Mon Sep 17 00:00:00 2001 From: Aravind Date: Mon, 24 Nov 2025 15:39:50 +0530 Subject: [PATCH 5/6] 990489-: Modified content as per the review comments --- blazor-toc.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/blazor-toc.html b/blazor-toc.html index ae9d2724de..60004118ba 100644 --- a/blazor-toc.html +++ b/blazor-toc.html @@ -4159,6 +4159,7 @@
  • Enter Key Configuration
  • Undo Redo Manager
  • Import/Export
  • +
  • Http Client
  • Execute Command
  • Style and Appearance
  • Style Encapsulation
  • @@ -4166,10 +4167,7 @@
  • Keyboard shortcuts
  • Accessibility
  • WebAssembly Performance
  • -
  • Import and Export
  • -
  • Http Client
  • -
  • Editor Modes
  • -
  • Keyboard shortcuts
  • +
  • Miscellaneous
  • Events
  • How To From b3bdaa231fb1999806a024ff43cbb3abc99ea738 Mon Sep 17 00:00:00 2001 From: Aravind Date: Mon, 24 Nov 2025 15:40:32 +0530 Subject: [PATCH 6/6] 990489-: Modified content as per the review comments --- blazor-toc.html | 1 - 1 file changed, 1 deletion(-) diff --git a/blazor-toc.html b/blazor-toc.html index 60004118ba..3a0d008090 100644 --- a/blazor-toc.html +++ b/blazor-toc.html @@ -4167,7 +4167,6 @@
  • Keyboard shortcuts
  • Accessibility
  • WebAssembly Performance
  • -
  • Miscellaneous
  • Events
  • How To