From 128b7fffba7484cc65489043d447a9e1fc3b2070 Mon Sep 17 00:00:00 2001 From: keerthikarankv <100576900+keerthikarankv@users.noreply.github.com> Date: Wed, 18 Mar 2026 21:52:56 +0530 Subject: [PATCH 1/6] UG(1015625): Customization UG page for Smart Rich Text Editor component. --- blazor-toc.html | 8 + blazor/smart-rich-text-editor/appearance.md | 68 +++++ blazor/smart-rich-text-editor/events.md | 134 +++++++++ ...text-editor-ai-assistview-custom-class.png | Bin 0 -> 24886 bytes blazor/smart-rich-text-editor/method.md | 81 ++++++ blazor/smart-rich-text-editor/property.md | 257 ++++++++++++++++++ 6 files changed, 548 insertions(+) create mode 100644 blazor/smart-rich-text-editor/appearance.md create mode 100644 blazor/smart-rich-text-editor/events.md create mode 100644 blazor/smart-rich-text-editor/images/smart-rich-text-editor-ai-assistview-custom-class.png create mode 100644 blazor/smart-rich-text-editor/method.md create mode 100644 blazor/smart-rich-text-editor/property.md diff --git a/blazor-toc.html b/blazor-toc.html index 98c30df0a3..e43dfc90a5 100644 --- a/blazor-toc.html +++ b/blazor-toc.html @@ -290,6 +290,14 @@
  • Blazor WASM App
  • +
  • Customization + +
  • AI AssistView diff --git a/blazor/smart-rich-text-editor/appearance.md b/blazor/smart-rich-text-editor/appearance.md new file mode 100644 index 0000000000..09fa34cc86 --- /dev/null +++ b/blazor/smart-rich-text-editor/appearance.md @@ -0,0 +1,68 @@ +--- +layout: post +title: Customizing AI Assistant Popup | Syncfusion Blazor Smart Rich Text Editor +description: Learn how to customize the AI Assistant popup styling with CSS animations and processing states. +platform: Blazor +control: Smart Rich Text Editor +documentation: ug +--- + +# Customizing the AI Assistant Popup + +## Styling the Popup + +The AI Assistant Popup can be styled using the following CSS class: + +```css +.e-rte-aiquery-dialog.e-dlg-modal.e-popup { + color: white; + background: white; + z-index: 1; +} +``` +--- + +## Example: Custom Popup Styling + +In this example, we customize the AI Assistant popup appearance by targeting the `.e-rte-aiquery-dialog.e-aiassistview` selector. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor + + + + +``` + +![Blazor Smart Rich Text Editor AI AssistView Custom Class](./images/ai-assistview-custom-class.png) + + +This shows how to customize the assistant by targeting the `.e-rte-aiquery-dialog.e-aiassistview` selector for fine-grained control over the popup's appearance. +--- + +## See Also + +* [Properties](property.md) +* [Methods](method.md) +* [Events](events.md) diff --git a/blazor/smart-rich-text-editor/events.md b/blazor/smart-rich-text-editor/events.md new file mode 100644 index 0000000000..0ecb985cac --- /dev/null +++ b/blazor/smart-rich-text-editor/events.md @@ -0,0 +1,134 @@ +--- +layout: post +title: AssistViewSettings Events & Callbacks | Syncfusion Blazor Smart Rich Text Editor +description: Quick reference for AI Assistant events with simple definitions and code examples. +platform: Blazor +control: Smart Rich Text Editor +documentation: ug +--- + +# AssistViewSettings Events + +## AIPromptRequested +**Type:** `EventCallback` + +Fires when the user submits a prompt. This is where you process the user input and send it to your AI backend. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.InteractiveChat + + + + + +@code { + private async Task AIPromptRequested(AssistViewPromptRequestedEventArgs args) + { + // Your required action here + } +} +``` +--- + +## AIResponseStopped +**Type:** `EventCallback` + +Fires when the user clicks "Stop" during a streaming response. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.InteractiveChat + + + + + +@code { + private async Task AIResponseStopped(ResponseStoppedEventArgs args) + { + // Your required action here + } +} +``` +--- + +## AIToolbarItemClicked +**Type:** `EventCallback` + +Fires when the user clicks a toolbar button (Insert, Copy, Regenerate, etc.). + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.InteractiveChat + + + + + +@code { + private async Task AIToolbarItemClicked(AssistViewToolbarItemClickedEventArgs args) + { + // Your required action here + } +} +``` +--- + +## AIPopupOpening +**Type:** `EventCallback` + +Fires before the AI Assistant popup opens. Use to validate permissions or prefetch data. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.Popups + + + + + +@code { + private async Task AIPopupOpening(BeforeOpenEventArgs args) + { + // Your required action here + } +} +``` + +**Event Args Properties:** +- `Cancel` — Set to true to prevent opening + +--- + +## AIPopupClosing +**Type:** `EventCallback` + +Fires before the AI Assistant popup closes. Use to save state or confirm before closing. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.Popups + + + + + +@code { + private async Task AIPopupClosing(BeforeCloseEventArgs args) + { + // Your required action here + } +} +``` + +**Event Args Properties:** +- `Cancel` — Set to true to prevent closing + +--- + +## See Also + +* [Properties](property.md) +* [Methods](method.md) +* [Appearance](appearance.md) \ No newline at end of file diff --git a/blazor/smart-rich-text-editor/images/smart-rich-text-editor-ai-assistview-custom-class.png b/blazor/smart-rich-text-editor/images/smart-rich-text-editor-ai-assistview-custom-class.png new file mode 100644 index 0000000000000000000000000000000000000000..88bce34f8a9f51edf7f47e7fb21f13277781b419 GIT binary patch literal 24886 zcmc$`2UJsCw=QhwRYYG4pdesJnurKUM>-;%5IQI#7z7juB@lulpdz3kARt6KAta%f zP@*Eegcbs!iIhM>s0oqKZo>P0=RfD(@sIzE@sE4&9z)q>?X~7!Yp%KGeCD(A*3?*! z=a|5;ef#$D80c%8@7s5He&4?RDSsVd-w~3-4zU01_chnk+=uSIz<#ptklQ_@d;9j4 z#BpyuJj}j6`dr_}ci%p~Yn*@k4a~1D@7w3xVW54_GSHDW7942Lcu3yGcj~*06?Isb zO4?LvINKe0cHzQ%&$GU73odC~^3xj5Y0I0xKH}Bi<@E#e6lUmOW-{O3we)Z}&j`{X z-_`daw;24@Ug)gg`|y~Od#yuBQj#B}9#bEU6;btN*EU_AT)`#FS$SS_w z%;4G1n)kZokXhx4slN^#*uS4GDCY3QrRj2d#zYAw^A39(WGa+;$ z>gv-+k2D=Iz{7_RmuNvSL}YKT*$kO%qI&+{Wv{lJ8&pm=-q;R3d|-dg*y5Xw%d8yu z=g+3b#wYgwNAteF*vpxm5KKj4Z z{^4Prz#O)~uyMbyj_Ef{Nv4_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E!Zc zA9ad$z9*&F$wVR#lBmaT;iTa9iWBeOE;C-UY^L%iL93{C_{FtLZi;P|%~8Y5tc~Jq zBLrS(=IE7LdQLzkN#83_UvTnmN(lRqqbCWgiTZe_`=a-%okk-JVI_jH4H=_Pq{kB^ z&s!5sL)fiPPCzfB!&6>gCA5LfE2&5bF3O5E8GOHsYi@!!b__dy6+ZH!5%1KpsKL^{ z15^{3q;c0?rF>MrZd>iMakM6mH^(WLPl&rzpsqIs}v{6jG zVh?Jz2nQFUA>Z=~SK6j6X%0EQZBPz9!}Yz(_W#K#D)@6Gr1u{qv-qYopjCq4PF+&I z7<*gBpdf1Ll0QU%z$;RUpn9L(l{<&uaEZS*lCmg=a@V>_vnP4sVqR0#Rb}CY<{_Qw z!n2X~LEW7O=?rmiaJmFOdxD^HFKGD|LK7<}qy-z0I+c$H$9JK^po_KXA6yCXV0h5r zbog`~e1|~%+ZPXWOrYNQceniW=JDUN1@r(Ev>fgT@b`a#76PjuxWWJbTK@dWv;HBE z1IHi{3SF0k=y87^oFKFf^QP+I*Z$>}05)zoypaQl+RZYFEtdNPI~*MyU0hwMrqJ#V zz6``6pO`|C + Show AI Popup + Execute AI Prompt + Clear AI History + Update AI Response + Hide AI Popup + Get AI History + + + + +@code { + private AssistViewSettings AssistViewSettings; + private List WorkflowLogs = new(); + private async void ShowPopupAsync() + { + await AssistViewSettings.ShowAIPopupAsync(); + } + private async void ExecutePromptAsync() + { + await AssistViewSettings.ExecuteAIPromptAsync("Write a professional summary about AI"); + } + private async void ClearHistoryAsync() + { + await AssistViewSettings.ClearAIPromptHistoryAsync(); + } + private async void UpdateResponseAsync() + { + string customResponse = "This is a custom AI-generated response added programmatically via UpdateAIResponseAsync()."; + await AssistViewSettings.UpdateAIResponseAsync(customResponse, true); + } + private async void HidePopupAsync() + { + await AssistViewSettings.HideAIPopupAsync(); + } + private async void GetHistoryAsync() + { + AssistViewPrompt[] history = await AssistViewSettings.GetAIPromptHistoryAsync(); + } +} +``` +--- + +## See Also + +* [Properties](property.md) +* [Appearance](appearance.md) +* [Events](events.md) \ No newline at end of file diff --git a/blazor/smart-rich-text-editor/property.md b/blazor/smart-rich-text-editor/property.md new file mode 100644 index 0000000000..3444ee27db --- /dev/null +++ b/blazor/smart-rich-text-editor/property.md @@ -0,0 +1,257 @@ +--- +layout: post +title: AssistViewSettings Properties | Syncfusion Blazor Smart Rich Text Editor +description: Quick reference for AI Assistant properties with simple definitions and code examples. +platform: Blazor +control: Smart Rich Text Editor +documentation: ug +--- + +# AssistViewSettings Properties + +## Commands +**Type:** `List` + +Predefined AI actions displayed in the Smart Action dropdown. +Use the `Commands` property to configure each `AICommands` entry, including its display text, prompt template, and any nested options. By default, the AI Assistant prompt includes contextual information from the editor, such as the selected text or the entire document content. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor + + + + + +@code { + private List MyCommands = new() + { + new AICommands { Text = "Shorten", Prompt = "Make this shorter" }, + new AICommands { Text = "Expand", Prompt = "Add more details" }, + new AICommands + { + Text = "Translate", + Prompt = "Translate the text", + Items = new List + { + new AICommands { Text = "To French", Prompt = "Translate to French" }, + new AICommands { Text = "To Spanish", Prompt = "Translate to Spanish" } + } + } + }; +} +``` +--- + +## PopupMaxHeight +**Type:** `string` | **Default:** `"400"` +Maximum height for the AI Assistant popup. Accepts CSS units (e.g., `800px`, `80vh`, `100%`) or numeric values (treated as pixels). +Sets the maximum height of the AI Assistant popup. Accepts CSS values like "800px", "80vh", "100%". + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor + + + + +``` +--- + +## PopupWidth +**Type:** `string` | **Default:** `"600"` +Width of the AI Assistant popup. Accepts CSS units (px, %, vw) or numeric values (converted to pixels); use `auto` for responsive sizing. +Sets the width of the AI Assistant popup. Accepts CSS values or numeric values. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor + + + + +``` +--- + +## Placeholder +**Type:** `string` | **Default:** `"Ask AI to rewrite or generate content."` +Hint text shown inside the AI prompt input to guide users on what they can ask the assistant. +Sets the placeholder text in the AI prompt input field. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor + + + + +``` +--- + +## Prompts +**Type:** `List` +A collection of predefined prompt/response templates that can be loaded into the assistant to provide starters or canned workflows. +Predefined prompt-response pairs to preload in the AI Assistant. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.InteractiveChat + + + + + +@code { + private List TemplatePrompts = new() + { + new AssistViewPrompt + { + Prompt = "Draft a professional email", + Response = @"Subject: Hello Team Dear Team, I hope this message finds you well. Best regards" + }, + new AssistViewPrompt + { + Prompt = "Create API documentation", + Response = @"### GET /users Retrieves a list of users. **Request** GET /api/users **Response** ```json { ""users"": [] } ```" + } + }; +} +``` +--- + +## Suggestions +**Type:** `List` +Short suggestion chips presented to users for one-tap prompts (e.g., "Fix grammar", "Make shorter"). +Quick-start suggestion chips shown in the AI Assistant. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor + + + + + +@code { + private List QuickSuggestions = new() + { + "Make shorter", + "Improve clarity", + "Fix grammar", + "Add examples", + "More formal", + "Simplify" + }; +} +``` +--- + +## MaxPromptHistory +**Type:** `int` | **Default:** `20` +Maximum number of conversation entries to retain; oldest entries are removed when the limit is exceeded. +Maximum number of saved conversations. Oldest entries are removed when exceeded. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor + + + + + +``` +--- + +## BannerTemplate +**Type:** `RenderFragment?` +RenderFragment used to render a custom banner at the top of the assistant, useful for branding, status, or short instructions. +Custom template for the banner at the top of the AI Assistant sidebar. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor + + + + +
    +

    Smart AI Assistant

    + Real-time AI assistance +
    +
    +
    +
    +``` +--- + +## HeaderToolbarSettings +**Type:** `RenderFragment?` +RenderFragment that defines toolbar items in the assistant header (close, settings, etc.). +Toolbar configuration for the header of the AI Assistant sidebar. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.InteractiveChat +@using Syncfusion.Blazor.Navigations + + + + + + + + + + +``` +--- + +## PromptToolbarSettings +**Type:** `RenderFragment?` +RenderFragment for toolbar items shown below the prompt input (edit, copy, save, etc.). +Toolbar configuration below the prompt input area. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.InteractiveChat +@using Syncfusion.Blazor.Navigations + + + + + + + + + + + +``` +--- + +## ResponseToolbarSettings +**Type:** `RenderFragment?` +RenderFragment for actions associated with AI responses (regenerate, copy, insert, feedback buttons). +Toolbar configuration for AI response actions. + +```razor +@using Syncfusion.Blazor.SmartRichTextEditor +@using Syncfusion.Blazor.InteractiveChat +@using Syncfusion.Blazor.Navigations + + + + + + + + + + + + + + +``` +--- + +## See Also + +* [Methods](method.md) +* [Appearance](appearance.md) +* [Events](events.md) \ No newline at end of file From 1b5234361656c5ee9476d9cd7b9609aea2ad80be Mon Sep 17 00:00:00 2001 From: keerthikarankv <100576900+keerthikarankv@users.noreply.github.com> Date: Thu, 19 Mar 2026 10:56:26 +0530 Subject: [PATCH 2/6] UG(1015625): Customization UG page for Smart Rich Text Editor component. --- blazor-toc.html | 2 +- blazor/smart-rich-text-editor/appearance.md | 6 +-- blazor/smart-rich-text-editor/events.md | 4 +- blazor/smart-rich-text-editor/method.md | 4 +- blazor/smart-rich-text-editor/property.md | 44 ++++++++++----------- 5 files changed, 29 insertions(+), 31 deletions(-) diff --git a/blazor-toc.html b/blazor-toc.html index e43dfc90a5..6a48013843 100644 --- a/blazor-toc.html +++ b/blazor-toc.html @@ -295,7 +295,7 @@
  • Property Configurations
  • Methods
  • Events
  • -
  • Appearance
  • +
  • Appearance
  • diff --git a/blazor/smart-rich-text-editor/appearance.md b/blazor/smart-rich-text-editor/appearance.md index 09fa34cc86..7431ba17bf 100644 --- a/blazor/smart-rich-text-editor/appearance.md +++ b/blazor/smart-rich-text-editor/appearance.md @@ -1,7 +1,7 @@ --- layout: post -title: Customizing AI Assistant Popup | Syncfusion Blazor Smart Rich Text Editor -description: Learn how to customize the AI Assistant popup styling with CSS animations and processing states. +title: Customize AI Assistant Popup in Syncfusion Smart Rich Text Editor +description: Step-by-step guidance for customizing the AI Assistant popup appearance, including CSS selectors, animation examples, responsive sizing, and processing state styles. platform: Blazor control: Smart Rich Text Editor documentation: ug @@ -55,7 +55,7 @@ In this example, we customize the AI Assistant popup appearance by targeting the ``` -![Blazor Smart Rich Text Editor AI AssistView Custom Class](./images/ai-assistview-custom-class.png) +![Blazor Smart Rich Text Editor AI AssistView Custom Class](./images/smart-rich-text-editor-ai-assistview-custom-class.png) This shows how to customize the assistant by targeting the `.e-rte-aiquery-dialog.e-aiassistview` selector for fine-grained control over the popup's appearance. diff --git a/blazor/smart-rich-text-editor/events.md b/blazor/smart-rich-text-editor/events.md index 0ecb985cac..d740000904 100644 --- a/blazor/smart-rich-text-editor/events.md +++ b/blazor/smart-rich-text-editor/events.md @@ -1,7 +1,7 @@ --- layout: post -title: AssistViewSettings Events & Callbacks | Syncfusion Blazor Smart Rich Text Editor -description: Quick reference for AI Assistant events with simple definitions and code examples. +title: AssistViewSettings Events in Syncfusion Smart Rich Text Editor +description: Reference showing AssistViewSettings events, arguments, and usage examples. Learn how to handle prompt submissions, streaming responses, popup lifecycle events, and toolbar interactions programmatically. platform: Blazor control: Smart Rich Text Editor documentation: ug diff --git a/blazor/smart-rich-text-editor/method.md b/blazor/smart-rich-text-editor/method.md index c5dde14ed9..979a804fa8 100644 --- a/blazor/smart-rich-text-editor/method.md +++ b/blazor/smart-rich-text-editor/method.md @@ -1,7 +1,7 @@ --- layout: post -title: AssistViewSettings Methods | Syncfusion Blazor Smart Rich Text Editor -description: Quick reference for AI Assistant methods with simple definitions and code examples. +title: AssistViewSettings Methods in Syncfusion Smart Rich Text Editor +description: Comprehensive reference for AssistViewSettings public methods with examples. Shows how to programmatically show or hide the AI popup, execute prompts, stream or update responses, and manage conversation history. platform: Blazor control: Smart Rich Text Editor documentation: ug diff --git a/blazor/smart-rich-text-editor/property.md b/blazor/smart-rich-text-editor/property.md index 3444ee27db..c7fe1d9c14 100644 --- a/blazor/smart-rich-text-editor/property.md +++ b/blazor/smart-rich-text-editor/property.md @@ -1,7 +1,7 @@ --- layout: post -title: AssistViewSettings Properties | Syncfusion Blazor Smart Rich Text Editor -description: Quick reference for AI Assistant properties with simple definitions and code examples. +title: AssistViewSettings Properties in Syncfusion Smart Rich Text Editor +description: Reference of AssistViewSettings properties with concise definitions and examples. Covers configuring AI commands, popup sizing, placeholders, predefined prompts and suggestions, toolbar templates, banner templates, and history limits. platform: Blazor control: Smart Rich Text Editor documentation: ug @@ -44,8 +44,8 @@ Use the `Commands` property to configure each `AICommands` entry, including its ## PopupMaxHeight **Type:** `string` | **Default:** `"400"` -Maximum height for the AI Assistant popup. Accepts CSS units (e.g., `800px`, `80vh`, `100%`) or numeric values (treated as pixels). -Sets the maximum height of the AI Assistant popup. Accepts CSS values like "800px", "80vh", "100%". + +Sets the maximum height of the AI Assistant popup. Accepts CSS height values or numbers (treated as pixels). ```razor @using Syncfusion.Blazor.SmartRichTextEditor @@ -58,8 +58,8 @@ Sets the maximum height of the AI Assistant popup. Accepts CSS values like "800p ## PopupWidth **Type:** `string` | **Default:** `"600"` -Width of the AI Assistant popup. Accepts CSS units (px, %, vw) or numeric values (converted to pixels); use `auto` for responsive sizing. -Sets the width of the AI Assistant popup. Accepts CSS values or numeric values. + +Sets the width of the AI Assistant popup. Accepts CSS width values or numbers (treated as pixels). ```razor @using Syncfusion.Blazor.SmartRichTextEditor @@ -72,8 +72,8 @@ Sets the width of the AI Assistant popup. Accepts CSS values or numeric values. ## Placeholder **Type:** `string` | **Default:** `"Ask AI to rewrite or generate content."` -Hint text shown inside the AI prompt input to guide users on what they can ask the assistant. -Sets the placeholder text in the AI prompt input field. + +Specifies the placeholder text shown in the AI Assistant prompt textarea. ```razor @using Syncfusion.Blazor.SmartRichTextEditor @@ -86,8 +86,8 @@ Sets the placeholder text in the AI prompt input field. ## Prompts **Type:** `List` -A collection of predefined prompt/response templates that can be loaded into the assistant to provide starters or canned workflows. -Predefined prompt-response pairs to preload in the AI Assistant. + +Defines a collection of predefined prompts and their corresponding responses. These prompt/response templates can be loaded into the AI Assistant to provide starter prompts or predefined workflows. ```razor @using Syncfusion.Blazor.SmartRichTextEditor @@ -117,8 +117,8 @@ Predefined prompt-response pairs to preload in the AI Assistant. ## Suggestions **Type:** `List` -Short suggestion chips presented to users for one-tap prompts (e.g., "Fix grammar", "Make shorter"). -Quick-start suggestion chips shown in the AI Assistant. + +Defines suggestion prompts displayed in the AI Assistant popup. ```razor @using Syncfusion.Blazor.SmartRichTextEditor @@ -143,8 +143,8 @@ Quick-start suggestion chips shown in the AI Assistant. ## MaxPromptHistory **Type:** `int` | **Default:** `20` -Maximum number of conversation entries to retain; oldest entries are removed when the limit is exceeded. -Maximum number of saved conversations. Oldest entries are removed when exceeded. + +Defines the maximum number of conversation entries retained in the editor's history. When this limit is exceeded, the oldest entries are automatically removed. ```razor @using Syncfusion.Blazor.SmartRichTextEditor @@ -157,9 +157,8 @@ Maximum number of saved conversations. Oldest entries are removed when exceeded. --- ## BannerTemplate -**Type:** `RenderFragment?` -RenderFragment used to render a custom banner at the top of the assistant, useful for branding, status, or short instructions. -Custom template for the banner at the top of the AI Assistant sidebar. + +Specifies the template for the banner in the AI Assistant popup, useful for branding, status, or short instructions. ```razor @using Syncfusion.Blazor.SmartRichTextEditor @@ -179,8 +178,8 @@ Custom template for the banner at the top of the AI Assistant sidebar. ## HeaderToolbarSettings **Type:** `RenderFragment?` -RenderFragment that defines toolbar items in the assistant header (close, settings, etc.). -Toolbar configuration for the header of the AI Assistant sidebar. + +Configures the toolbar in the header section of the AI Assistant interface. ```razor @using Syncfusion.Blazor.SmartRichTextEditor @@ -201,9 +200,8 @@ Toolbar configuration for the header of the AI Assistant sidebar. ## PromptToolbarSettings **Type:** `RenderFragment?` -RenderFragment for toolbar items shown below the prompt input (edit, copy, save, etc.). -Toolbar configuration below the prompt input area. +Configures the toolbar below of the prompt input area section. ```razor @using Syncfusion.Blazor.SmartRichTextEditor @using Syncfusion.Blazor.InteractiveChat @@ -224,8 +222,8 @@ Toolbar configuration below the prompt input area. ## ResponseToolbarSettings **Type:** `RenderFragment?` -RenderFragment for actions associated with AI responses (regenerate, copy, insert, feedback buttons). -Toolbar configuration for AI response actions. + +Configures the toolbar in the AI response viewer section. ```razor @using Syncfusion.Blazor.SmartRichTextEditor From a4413a3a0fbe54197849a96e71bc99a9f1e1a660 Mon Sep 17 00:00:00 2001 From: keerthikarankv <100576900+keerthikarankv@users.noreply.github.com> Date: Thu, 19 Mar 2026 11:27:18 +0530 Subject: [PATCH 3/6] UG(1015625): Customization UG page for Smart Rich Text Editor component. --- blazor/smart-rich-text-editor/appearance.md | 2 +- blazor/smart-rich-text-editor/events.md | 2 +- blazor/smart-rich-text-editor/method.md | 2 +- blazor/smart-rich-text-editor/property.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blazor/smart-rich-text-editor/appearance.md b/blazor/smart-rich-text-editor/appearance.md index 7431ba17bf..5c374165fb 100644 --- a/blazor/smart-rich-text-editor/appearance.md +++ b/blazor/smart-rich-text-editor/appearance.md @@ -1,7 +1,7 @@ --- layout: post title: Customize AI Assistant Popup in Syncfusion Smart Rich Text Editor -description: Step-by-step guidance for customizing the AI Assistant popup appearance, including CSS selectors, animation examples, responsive sizing, and processing state styles. +description: Customize the AI Assistant popup: CSS selectors, animation examples, responsive sizing, and processing-state styles for consistent theming. platform: Blazor control: Smart Rich Text Editor documentation: ug diff --git a/blazor/smart-rich-text-editor/events.md b/blazor/smart-rich-text-editor/events.md index d740000904..83ca681ee4 100644 --- a/blazor/smart-rich-text-editor/events.md +++ b/blazor/smart-rich-text-editor/events.md @@ -1,7 +1,7 @@ --- layout: post title: AssistViewSettings Events in Syncfusion Smart Rich Text Editor -description: Reference showing AssistViewSettings events, arguments, and usage examples. Learn how to handle prompt submissions, streaming responses, popup lifecycle events, and toolbar interactions programmatically. +description: Reference for AssistViewSettings events, arguments, and examples to handle prompt submissions, streaming responses, popup lifecycle, and toolbar actions. platform: Blazor control: Smart Rich Text Editor documentation: ug diff --git a/blazor/smart-rich-text-editor/method.md b/blazor/smart-rich-text-editor/method.md index 979a804fa8..8a4cd99d9c 100644 --- a/blazor/smart-rich-text-editor/method.md +++ b/blazor/smart-rich-text-editor/method.md @@ -1,7 +1,7 @@ --- layout: post title: AssistViewSettings Methods in Syncfusion Smart Rich Text Editor -description: Comprehensive reference for AssistViewSettings public methods with examples. Shows how to programmatically show or hide the AI popup, execute prompts, stream or update responses, and manage conversation history. +description: Comprehensive reference for AssistViewSettings methods with examples to show/hide the AI popup, execute prompts, stream/update responses, and manage history. platform: Blazor control: Smart Rich Text Editor documentation: ug diff --git a/blazor/smart-rich-text-editor/property.md b/blazor/smart-rich-text-editor/property.md index c7fe1d9c14..dbc2b7ea4f 100644 --- a/blazor/smart-rich-text-editor/property.md +++ b/blazor/smart-rich-text-editor/property.md @@ -1,7 +1,7 @@ --- layout: post title: AssistViewSettings Properties in Syncfusion Smart Rich Text Editor -description: Reference of AssistViewSettings properties with concise definitions and examples. Covers configuring AI commands, popup sizing, placeholders, predefined prompts and suggestions, toolbar templates, banner templates, and history limits. +description: Reference of AssistViewSettings properties with concise definitions and examples for configuring commands, popup sizing, placeholders, prompts, toolbars, banner templates, and history limits. platform: Blazor control: Smart Rich Text Editor documentation: ug From 6a61c2892d21ddb34a26ff7cb78ce48028518ff6 Mon Sep 17 00:00:00 2001 From: keerthikarankv <100576900+keerthikarankv@users.noreply.github.com> Date: Thu, 19 Mar 2026 11:34:22 +0530 Subject: [PATCH 4/6] UG(1015625): Customization UG page for Smart Rich Text Editor component. --- blazor/smart-rich-text-editor/property.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazor/smart-rich-text-editor/property.md b/blazor/smart-rich-text-editor/property.md index dbc2b7ea4f..eaafd2ec49 100644 --- a/blazor/smart-rich-text-editor/property.md +++ b/blazor/smart-rich-text-editor/property.md @@ -1,7 +1,7 @@ --- layout: post title: AssistViewSettings Properties in Syncfusion Smart Rich Text Editor -description: Reference of AssistViewSettings properties with concise definitions and examples for configuring commands, popup sizing, placeholders, prompts, toolbars, banner templates, and history limits. +description: Comprehensive reference of AssistViewSettings properties with concise definitions and code examples for configuring AI commands, popup sizing, placeholders, prompts, toolbars, banner templates, history, and usage patterns. platform: Blazor control: Smart Rich Text Editor documentation: ug From 9c4fd93184528001cf93bd55d1cc5d302f205c7a Mon Sep 17 00:00:00 2001 From: keerthikarankv <100576900+keerthikarankv@users.noreply.github.com> Date: Thu, 19 Mar 2026 12:23:39 +0530 Subject: [PATCH 5/6] UG(1015625): Customization UG page for Smart Rich Text Editor component. --- blazor/smart-rich-text-editor/property.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazor/smart-rich-text-editor/property.md b/blazor/smart-rich-text-editor/property.md index eaafd2ec49..6152afc627 100644 --- a/blazor/smart-rich-text-editor/property.md +++ b/blazor/smart-rich-text-editor/property.md @@ -1,7 +1,7 @@ --- layout: post title: AssistViewSettings Properties in Syncfusion Smart Rich Text Editor -description: Comprehensive reference of AssistViewSettings properties with concise definitions and code examples for configuring AI commands, popup sizing, placeholders, prompts, toolbars, banner templates, history, and usage patterns. +description: AssistViewSettings properties reference with concise definitions and examples for configuring commands, popup sizing, placeholders, prompts, toolbars, banners, and history. platform: Blazor control: Smart Rich Text Editor documentation: ug From d84411a549ac366e9f86397f7f7d3fb9b00bf2e0 Mon Sep 17 00:00:00 2001 From: keerthikarankv <100576900+keerthikarankv@users.noreply.github.com> Date: Thu, 19 Mar 2026 12:57:24 +0530 Subject: [PATCH 6/6] UG(1015625): Customization UG page for Smart Rich Text Editor component. --- blazor/smart-rich-text-editor/property.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazor/smart-rich-text-editor/property.md b/blazor/smart-rich-text-editor/property.md index 6152afc627..eb5994909b 100644 --- a/blazor/smart-rich-text-editor/property.md +++ b/blazor/smart-rich-text-editor/property.md @@ -1,7 +1,7 @@ --- layout: post title: AssistViewSettings Properties in Syncfusion Smart Rich Text Editor -description: AssistViewSettings properties reference with concise definitions and examples for configuring commands, popup sizing, placeholders, prompts, toolbars, banners, and history. +description: AssistViewSettings reference with concise definitions and examples for configuring AI commands, popup sizing, placeholders, prompts, toolbars and history. platform: Blazor control: Smart Rich Text Editor documentation: ug