
syncfusion-blazor-smart-rich-text-editor
Implements Syncfusion SfSmartRichTextEditor, an AI-enhanced WYSIWYG editor extending SfRichTextEditor in Blazor. Use this when configuring AI backends (OpenAI, Azure OpenAI, Ollama, custom IChatClient), Smart Action toolbar, AI query dialog, AssistViewSettings, AI popup events and methods, or any inherited Rich Text Editor features in Blazor Server and Web App.
- Installs
- 348
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-smart-rich-text-editor- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-blazor-smart-rich-text-editor automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Syncfusion Blazor Smart Rich Text Editor
A comprehensive skill for implementing and configuring the Syncfusion Blazor Smart Rich Text Editor (SfSmartRichTextEditor) — an AI-powered WYSIWYG editor that extends the full-featured SfRichTextEditor with intelligent content assistance. Supports OpenAI, Azure OpenAI, Ollama, and custom AI backends. Provides a Smart Action dropdown toolbar, an AI query dialog (Alt+Enter), and a fully customizable AI Assistant popup via AssistViewSettings.
When to Use This Skill
Use this skill when the user needs to:
- Install and set up
SfSmartRichTextEditorin a Blazor Server or Web App project - Configure an AI backend: OpenAI, Azure OpenAI, Ollama, or a custom
IChatClient - Register
IChatInferenceService/SyncfusionAIServiceinProgram.cs - Use the Smart Action dropdown toolbar for AI commands (summarize, expand, adjust tone)
- Add
Name = "AI Commands"andName = "AI Query"toToolbarItemModellist to render AI toolbar buttons - Open the AI Query dialog with
Alt+Enterfor free-form AI prompts - Configure
AssistViewSettings:Commands,Suggestions,Prompts,Placeholder,MaxPromptHistory, popup sizing - Customize the AI Assistant popup (
BannerTemplate,HeaderToolbarSettings,PromptToolbarSettings,ResponseToolbarSettings) - Handle AI events:
AIPromptRequested,AIResponseStopped,AIToolbarItemClicked,AIPopupOpening,AIPopupClosing - Use AI Assistant methods:
ShowAIPopupAsync,HideAIPopupAsync,ExecuteAIPromptAsync,UpdateAIResponseAsync,GetAIPromptHistoryAsync,ClearAIPromptHistoryAsync - Style or animate the AI Assistant popup (
.e-rte-aiquery-dialog) - Use all inherited
SfRichTextEditorfeatures: toolbar, images, tables, events, methods, data binding, paste cleanup, import/export, accessibility
Quick Start
1. Install NuGet packages:
dotnet add package Syncfusion.Blazor.SmartRichTextEditor
dotnet add package Syncfusion.Blazor.Themes
dotnet add package Microsoft.Extensions.AI
dotnet add package Microsoft.Extensions.AI.OpenAI
2. Register services in Program.cs:
using Syncfusion.Blazor;
using Syncfusion.Blazor.AI;
using Microsoft.Extensions.AI;
using OpenAI;
builder.Services.AddSyncfusionBlazor();
string openAIApiKey = "YOUR_API_KEY";
string openAIModel = "gpt-4";
OpenAIClient openAIClient = new OpenAIClient(openAIApiKey);
IChatClient chatClient = openAIClient.GetChatClient(openAIModel).AsIChatClient();
builder.Services.AddChatClient(chatClient);
builder.Services.AddSingleton<IChatInferenceService, SyncfusionAIService>();
3. Add to _Imports.razor:
@using Syncfusion.Blazor
@using Syncfusion.Blazor.SmartRichTextEditor
4. Add CSS/JS in App.razor (Server) or index.html (WASM):
<link href="_content/Syncfusion.Blazor.Themes/tailwind.css" rel="stylesheet" />
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js"></script>
5. Add the component:
@rendermode InteractiveServer
<SfSmartRichTextEditor>
<h2>Welcome to Smart Rich Text Editor</h2>
<p>Select text and use the Smart Action toolbar, or press Alt+Enter to open the AI Query dialog.</p>
<AssistViewSettings Placeholder="Ask AI to rewrite or generate content." />
</SfSmartRichTextEditor>
Navigation Guide
Getting Started & AI Service Setup
📄 Read: references/getting-started.md
- NuGet installation:
Syncfusion.Blazor.SmartRichTextEditor+Syncfusion.Blazor.Themes - Full setup for Blazor Server App (Visual Studio and VS Code) and Blazor Web App (.NET 8+)
- OpenAI, Azure OpenAI, Ollama, and custom
IChatClientconfiguration inProgram.cs AddInteractiveServerComponents()registration pattern for Web App- CSS theme and JS script references (.NET 6 through .NET 10)
- Adding the component with
AssistViewSettings - Content retrieval methods (
GetTextAsync,GetCharCountAsync) - Common setup issues and fixes
AI Backend Configuration
📄 Read: references/ai-backends.md
- OpenAI: API key, supported models (
gpt-4-turbo,gpt-4,gpt-3.5-turbo),OpenAIClientsetup, environment variables and User Secrets - Azure OpenAI: resource deployment,
AzureOpenAIClient+ApiKeyCredential,appsettings.jsonconfig, Managed Identity (production recommended), HIPAA/SOC 2 compliance, monitoring, cost optimization - Ollama: local model installation (
mistral,llama2),OllamaApiClient+OllamaSharpNuGet, Docker Compose, GPU acceleration, model recommendations - Custom
IChatClient: implementingIChatClientfor internal/proprietary AI, registering inProgram.cs, streaming responses, retry logic, error handling, corporate AI API example
AssistViewSettings — Properties
📄 Read: references/assist-view-settings.md
Commands(List<AICommands>): Smart Action dropdown with nested sub-commands and icon CSSPopupMaxHeight/PopupWidth: control popup dimensions (CSS values or pixel numbers)Placeholder: placeholder text in the AI prompt textareaPrompts(List<AssistViewPrompt>): predefined prompt/response templates loaded into the popupSuggestions(List<string>): quick suggestion chips shown in the AI popupMaxPromptHistory: maximum conversation entries retained (default: 20)BannerTemplate: custom branding/headerRenderFragmentfor the AI popupHeaderToolbarSettings/PromptToolbarSettings/ResponseToolbarSettings: toolbar customization withAssistViewToolbarItem
AssistViewSettings — Events
📄 Read: references/ai-events.md
AIPromptRequested(AssistViewPromptRequestedEventArgs): intercept/modify prompt before AI call; setCancel=trueto prevent; modifyResponse,PromptSuggestions,ResponseToolbarItemsAIResponseStopped(ResponseStoppedEventArgs): user clicked "Stop Responding"; providesDataIndexandPromptAIToolbarItemClicked(AssistViewToolbarItemClickedEventArgs): handle custom toolbar button clicks; accessItem,DataIndex,Event; setCancel=trueAIPopupOpening(BeforeOpenEventArgs): cancel popup opening withargs.Cancel = true; accessElementreferenceAIPopupClosing(BeforeCloseEventArgs): cancel popup closing; accessClosedBy,IsInteracted,PreventFocus
AssistViewSettings — Methods
📄 Read: references/ai-methods.md
ShowAIPopupAsync(): open the AI Assistant popup programmaticallyHideAIPopupAsync(): close the AI Assistant popupExecuteAIPromptAsync(string prompt): send a prompt programmatically (as if user typed it)UpdateAIResponseAsync(string response, bool isFinalUpdate): stream or inject AI response; setisFinalUpdate=trueto hide Stop buttonGetAIPromptHistoryAsync(): retrieve all saved prompts/responses asAssistViewPrompt[](chronological, limited toMaxPromptHistory)ClearAIPromptHistoryAsync(): reset all conversation history- Complete example combining all six methods with
@ref
AI Popup Appearance & CSS
📄 Read: references/ai-appearance.md
- CSS selectors for the AI popup:
.e-rte-aiquery-dialog,.e-aiassistview - Customizing popup background, border, box-shadow
- Targeting
.e-view-header,.e-view-content .e-toolbar,.e-footersub-sections for fine-grained control - Full custom popup styling example
Toolbar Configuration
📄 Read: references/toolbar.md
- Enabling or disabling the toolbar with
RichTextEditorToolbarSettings.Enable - Toolbar types: Expand, MultiRow, Scrollable, Popup
- Floating toolbar and offset configuration
- Toolbar position (top or bottom)
- Configuring toolbar items with
ToolbarItemModel - Custom toolbar items (template-based)
Built-in Toolbar Tools Reference
📄 Read: references/built-in-tools.md
- Default toolbar items for
SfSmartRichTextEditor - AI-specific toolbar items —
Name = "AI Commands"(Smart Action dropdown) andName = "AI Query"(Ask AI button); must useNameproperty, NOTToolbarCommandenum - Complete list of all
ToolbarCommandenum values - Text formatting, font & styling, alignment, lists, hyperlinks
- Image/table/link quick toolbar item commands using
SfSmartRichTextEditor - Undo/redo, fullscreen, print, source code, preview tools
- Removing or reordering default toolbar items
Text Formatting
📄 Read: references/text-formatting.md
- Bold, italic, underline, strikethrough, subscript, superscript, inline code
- Text alignment (left, center, right, justify)
- Ordered/unordered lists with custom number and bullet styles
- Heading formats (H1–H6, paragraph, blockquote, code)
- Line height configuration
- Horizontal line, format painter, clear format
- Markdown auto-format (inline and block shortcuts)
Images, Video & Audio
📄 Read: references/images-and-media.md
- Image insertion from local machine or URL
RichTextEditorImageSettings: SaveUrl, Path, AllowedTypes, EnableResize- Base64 vs server-side upload
- Image quick toolbar configuration
- Video and audio insertion and settings
Tables
📄 Read: references/tables.md
- Creating tables with
CreateTabletoolbar item RichTextEditorTableSettings: width, resize, custom styles- Table quick toolbar: add/remove rows & columns, merge cells, properties
- Advanced table manipulation (cell selection, split, custom borders)
Editor Modes
📄 Read: references/editor-modes.md
- HTML editor mode (default WYSIWYG)
- Markdown editor mode (
EditorMode.Markdown) - IFrame vs DIV rendering mode
- Source code view toggling
Inline Mode
📄 Read: references/inline-mode.md
- Enabling inline toolbar (
InlineMode) - Inline toolbar display on text selection
- Use cases: comment editors, in-place content editing
Custom Tools & Exec Commands
📄 Read: references/custom-tools.md
- Adding custom toolbar buttons with
ToolbarItemModeland templates - Executing commands programmatically with
ExecuteCommandAsync - Slash commands (
/trigger menu) configuration - Format painter advanced settings (
RichTextEditorFormatPainterSettings)
Events (RTE)
📄 Read: references/events.md
RichTextEditorEventschild component usage and wiring pattern- Lifecycle events:
Created,Destroyed - Focus/interaction:
Focus,Blur,OnToolbarClick,SelectionChanged - Content events:
ValueChange,BeforePasteCleanup,AfterPasteCleanup - Toolbar lifecycle:
OnActionBegin,OnActionComplete - Dialog events:
OnDialogOpen,DialogOpened,OnDialogClose,DialogClosed - Quick toolbar:
OnQuickToolbarOpen,QuickToolbarOpened,QuickToolbarClosed - Image events:
OnImageSelected,BeforeUploadImage,OnImageUploadSuccess,OnImageUploadFailed,ImageUploadChange,OnImageDrop,ImageDelete - Media events:
FileSelected,FileUploading,FileUploadSuccess,FileUploadFailed,FileUploadChange,OnMediaDrop,MediaDeleted - Resize events:
OnResizeStart,OnResizeStop - Toolbar status:
UpdatedToolbarStatus - Export events:
OnExport,OnExportFailure - Slash menu:
SlashMenuItemSelecting - Complete EventArgs class reference with all properties
Methods (RTE)
📄 Read: references/methods.md
- Focus & selection:
FocusAsync,FocusOutAsync,SaveSelectionAsync,RestoreSelectionAsync,SelectAllAsync,GetSelectionAsync - Content retrieval:
GetTextAsync,GetSelectedHtmlAsync,GetCharCountAsync,GetXhtmlAsync - Command execution: all
ExecuteCommandAsyncoverloads with typed args (image, link, table, video, audio, code block, format painter) - Toolbar control:
EnableToolbarItem,DisableToolbarItem,RemoveToolbarItem - Dialog & UI control:
ShowDialogAsync,CloseDialogAsync,ShowFullScreenAsync,PrintAsync,RefreshUIAsync,ShowSourceCodeAsync - Undo/redo:
ClearUndoRedoAsync - Full
CommandName,ToolbarCommand, andDialogTypeenum references
Properties (RTE)
📄 Read: references/properties.md
- Content & value:
Value,Placeholder,Readonly,Enabled,MaxLength,ShowCharCount - Editor behaviour:
EditorMode,EnterKey,ShiftEnterKey,EnableTabKey,EnableAutoUrl,EnableMarkdownAutoFormat,EnableClipboardCleanup,EnableXhtml,EnableHtmlEncode,EnableResize - Appearance & layout:
Height,Width,CssClass,ShowTooltip,FloatingToolbarOffset - IFrame mode:
RichTextEditorIFrameSettingschild component withEnable,Attributes,Resources - Security & sanitization:
EnableHtmlSanitizer,AdditionalSanitizeAttributes,AdditionalSanitizeTags,DeniedSanitizeSelectors - Keyboard & shortcuts:
KeyConfigurewith fullShortcutKeysdefault bindings table - Persistence & auto-save:
EnablePersistence,SaveInterval,AutoSaveOnIdle - Undo/redo config:
UndoRedoSteps,UndoRedoTimer - HTTP integration:
HttpClientInstance - Full 38-property summary table
Data Binding & Value Management
📄 Read: references/data-binding.md
- Two-way binding with
@bind-Value - One-way binding and programmatic value updates
ValueChangeevent for detecting edits- Read-only mode (
Readonlyproperty) - Max length enforcement and character count display
Paste Cleanup
📄 Read: references/paste-and-cleanup.md
RichTextEditorPasteCleanupSettingsconfiguration- Stripping/keeping specific HTML attributes and styles on paste
- Forcing plain text paste
- Enter key behavior (
EnterKey,ShiftEnterKey) - Undo/redo manager configuration
Import & Export
📄 Read: references/import-export.md
- Importing Word documents into the editor
- Exporting content to Word (.docx) and PDF
- HTTP client configuration for import/export services
- Mail merge with dynamic data
- WebAssembly performance optimizations for large documents
Accessibility & Globalization
📄 Read: references/accessibility-globalization.md
- WCAG 2.1 compliance details
- Keyboard shortcuts and navigation reference
- ARIA roles and screen reader support
- RTL layout (
EnableRtl) - Localization and culture configuration
- XHTML validation
Common Patterns
Basic Smart Rich Text Editor with AI
@rendermode InteractiveServer
@using Syncfusion.Blazor.SmartRichTextEditor
<SfSmartRichTextEditor @bind-Value="@Content">
<AssistViewSettings Placeholder="Ask AI to rewrite or generate content." />
</SfSmartRichTextEditor>
@code {
private string Content { get; set; } = "<p>Start editing...</p>";
}
AI with custom Smart Action commands
<SfSmartRichTextEditor>
<AssistViewSettings Commands="@MyCommands" Suggestions="@QuickSuggestions" />
</SfSmartRichTextEditor>
@code {
private List<AICommands> MyCommands = new()
{
new AICommands { Text = "Summarize", Prompt = "Summarize this content concisely" },
new AICommands { Text = "Expand", Prompt = "Add more details and examples" },
new AICommands
{
Text = "Translate",
Items = new List<AICommands>
{
new AICommands { Text = "To French", Prompt = "Translate to French" },
new AICommands { Text = "To Spanish", Prompt = "Translate to Spanish" }
}
}
};
private List<string> QuickSuggestions = new()
{
"Fix grammar", "Make shorter", "More formal", "Simplify"
};
}
Programmatic AI popup control
<SfSmartRichTextEditor>
<AssistViewSettings @ref="AssistViewRef" MaxPromptHistory="10" />
</SfSmartRichTextEditor>
<button @onclick="OpenAI">Open AI</button>
<button @onclick="RunPrompt">Run Prompt</button>
@code {
private AssistViewSettings AssistViewRef;
private async Task OpenAI() =>
await AssistViewRef.ShowAIPopupAsync();
private async Task RunPrompt() =>
await AssistViewRef.ExecuteAIPromptAsync("Improve the clarity of this text");
}
Two-way bound editor with character count
<SfSmartRichTextEditor @bind-Value="@HtmlContent" ShowCharCount="true" MaxLength="2000">
<AssistViewSettings Placeholder="Ask AI for writing help." />
</SfSmartRichTextEditor>
@code {
private string HtmlContent { get; set; } = string.Empty;
}
Read-only display
<SfSmartRichTextEditor Value="@HtmlContent" Readonly="true">
<RichTextEditorToolbarSettings Enable="false" />
</SfSmartRichTextEditor>
Markdown editor mode
<SfSmartRichTextEditor EditorMode="EditorMode.Markdown" @bind-Value="@MarkdownContent">
<AssistViewSettings Placeholder="Ask AI to help with your Markdown content." />
</SfSmartRichTextEditor>
@code {
private string MarkdownContent { get; set; } = "**Hello** world!";
}
Handle AI prompt event to intercept requests
<SfSmartRichTextEditor>
<AssistViewSettings AIPromptRequested="OnAIPrompt" />
</SfSmartRichTextEditor>
@code {
private async Task OnAIPrompt(AssistViewPromptRequestedEventArgs args)
{
// Log, validate, or modify args.Prompt before it is sent to AI
Console.WriteLine($"Prompt: {args.Prompt}");
// To cancel: args.Cancel = true;
}
}
FAQ
What does the syncfusion-blazor-smart-rich-text-editor skill do?
Implements Syncfusion SfSmartRichTextEditor, an AI-enhanced WYSIWYG editor extending SfRichTextEditor in Blazor. Use this when configuring AI backends (OpenAI, Azure OpenAI, Ollama, custom IChatClient), Smart Action toolbar, AI query dialog, AssistViewSettings, AI popup events and methods, or any inherited Rich Text Editor features in Blazor Server and Web App.
How do I install syncfusion-blazor-smart-rich-text-editor?
Run npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-smart-rich-text-editor in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-blazor-smart-rich-text-editor/ (personal) or .claude/skills/syncfusion-blazor-smart-rich-text-editor/ (project).
Which AI agents can use syncfusion-blazor-smart-rich-text-editor?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-blazor-smart-rich-text-editor safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-blazor-smart-rich-text-editor?
It is published by syncfusion in syncfusion/blazor-ui-components-skills. It has 348 recorded installs.
More from syncfusion/blazor-ui-components-skills
syncfusion-blazor-datagrid
syncfusion/blazor-ui-components-skills
Implements the Syncfusion Blazor DataGrid (SfGrid) for efficient tabular operations such as sorting, filtering, paging, grouping, editing, aggregates, virtualization, lazy‑load grouping, and row or column spanning. Use this skill when building data‑grid workflows in Blazor Server, WebAssembly, Web App, or MAUI applications. Supports Excel/PDF export, virtual or infinite scrolling, customizable templates, and grid state persistence for consistent and optimized data‑grid behavior.
syncfusion-blazor-common
syncfusion/blazor-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-blazor-dropdowns
syncfusion/blazor-ui-components-skills
Comprehensive guide for implementing Syncfusion Blazor dropdown components including AutoComplete, ComboBox, DropDown List, MultiSelect Dropdown, and ListBox. Use this when building selection interfaces, data binding, filtering, cascading dropdowns, custom templates, and accessible dropdown experiences in Blazor applications. Covers all dropdown components from Syncfusion.Blazor.DropDowns package.
syncfusion-blazor-charts
syncfusion/blazor-ui-components-skills
Implement Syncfusion Blazor Chart (SfChart) component for comprehensive data visualization. Use this when creating line charts, bar/column charts, area charts, financial charts, or statistical visualizations. This skill covers 30+ chart types including scatter plots, bubble charts, candlestick charts, and specialized charts like waterfall, histogram, and polar charts for Blazor applications.
syncfusion-blazor-popups
syncfusion/blazor-ui-components-skills
Implement modal and modeless dialogs using Syncfusion Blazor Dialog component. Use this skill when creating dialogs, popup windows, modal confirmations, custom forms, or interactive overlay windows. Covers templates, events, positioning, animations, accessibility, and advanced customization.
syncfusion-blazor-license
syncfusion/blazor-ui-components-skills
Generate, register, secure, validate, and troubleshoot Syncfusion Blazor license keys across all Blazor project types
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available