Skip to content

syncfusion/blazor-ui-components-skills / skills/syncfusion-blazor-rich-text-editor

syncfusion-blazor-rich-text-editor

Verified

Implements the Syncfusion Blazor Rich Text Editor (SfRichTextEditor) from Syncfusion.Blazor.RichTextEditor. Supports HTML, Markdown, and IFrame editor modes. Use this skills for toolbar configuration, image/video/audio insertion, table management, paste cleanup, import/export Word/PDF, accessibility, globalization, RTL, and inline or custom toolbar tool scenarios in Blazor applications.

references/built-in-tools.md

View on GitHub
# Built-in Toolbar Tools Reference

## Table of Contents
- [Default Toolbar](#default-toolbar)
- [Text Formatting Tools](#text-formatting-tools)
- [Font and Styling Tools](#font-and-styling-tools)
- [Alignment Tools](#alignment-tools)
- [Lists and Indentation](#lists-and-indentation)
- [Hyperlink Tools](#hyperlink-tools)
- [Image Quick Toolbar Commands](#image-quick-toolbar-commands)
- [Table Quick Toolbar Commands](#table-quick-toolbar-commands)
- [Utility Tools](#utility-tools)
- [Removing Default Tools](#removing-default-tools)

---

## Default Toolbar

Out of the box, the RTE renders these toolbar items when no `Items` list is specified:

`Bold | Italic | Underline | | Formats | Alignments | Blockquote | OrderedList | UnorderedList | | CreateLink | Image | | SourceCode | Undo | Redo`

---

## Text Formatting Tools

| `ToolbarCommand` | Effect |
|---|---|
| `Bold` | Makes selected text bold (`<strong>`) |
| `Italic` | Italicises selected text (`<em>`) |
| `Underline` | Underlines selected text |
| `StrikeThrough` | Applies strikethrough |
| `InlineCode` | Wraps selection in `<code>` |
| `SubScript` | Subscript — positions text lower |
| `SuperScript` | Superscript — positions text higher |
| `LowerCase` | Converts selection to lowercase |
| `UpperCase` | Converts selection to uppercase |
| `ClearFormat` | Strips all inline styles from selection |

---

## Font and Styling Tools

| `ToolbarCommand` | Effect |
|---|---|
| `FontName` | Font family dropdown |
| `FontSize` | Font size dropdown |
| `FontColor` | Font colour picker |
| `BackgroundColor` | Highlight / background colour picker |
| `Formats` | Paragraph/heading format dropdown (P, H1–H6, Pre, BlockQuote) |
| `LineHeight` | Line-height dropdown; applies to parent block |

---

## Alignment Tools

| `ToolbarCommand` | Effect |
|---|---|
| `Alignments` | Combined alignment dropdown |
| `JustifyLeft` | Left-align |
| `JustifyCenter` | Centre-align |
| `JustifyRight` | Right-align |
| `JustifyFull` | Justify |

> Alignment is applied to the **entire block** that contains the cursor, not just selected inline text.

---

## Lists and Indentation

| `ToolbarCommand` | Effect |
|---|---|
| `OrderedList` | Toggle numbered list |
| `UnorderedList` | Toggle bulleted list |
| `NumberFormatList` | Numbered list with style picker (decimal, roman, alpha, …) |
| `BulletFormatList` | Bulleted list with style picker (disc, square, circle, …) |
| `Indent` | Increase indentation / nest list item |
| `Outdent` | Decrease indentation / un-nest list item |

---

## Hyperlink Tools

**Main toolbar:**

| `ToolbarCommand` | Effect |
|---|---|
| `CreateLink` | Open insert-link dialog |

**Link quick toolbar** — configure via `RichTextEditorQuickToolbarSettings.Link`:

| Command | Effect |
|---|---|
| `LinkToolbarCommand.Open` | Open the linked URL |
| `LinkToolbarCommand.Edit` | Edit the link href/text |
| `LinkToolbarCommand.UnLink` | Remove hyperlink |

```razor
<SfRichTextEditor>
    <RichTextEditorQuickToolbarSettings Link="@LinkTools" />
</SfRichTextEditor>

@code {
    private List<LinkToolbarItemModel> LinkTools = new()
    {
        new() { Command = LinkToolbarCommand.Open },
        new() { Command = LinkToolbarCommand.Edit },
        new() { Command = LinkToolbarCommand.UnLink }
    };
}
```

---

## Image Quick Toolbar Commands

Configure via `RichTextEditorQuickToolbarSettings.Image`:

| Command | Effect |
|---|---|
| `ImageToolbarCommand.Replace` | Swap image with another |
| `ImageToolbarCommand.Align` | Align image left / centre / right |
| `ImageToolbarCommand.WrapText` |  Wraps text around the image right / left |
| `ImageToolbarCommand.Caption` | Wrap image in figure/caption |
| `ImageToolbarCommand.Remove` | Delete image from content |
| `ImageToolbarCommand.OpenImageLink` | Follow attached hyperlink |
| `ImageToolbarCommand.EditImageLink` | Edit attached hyperlink |
| `ImageToolbarCommand.RemoveImageLink` | Remove attached hyperlink |
| `ImageToolbarCommand.Display` | Toggle inline / block display |
| `ImageToolbarCommand.AltText` | Edit alternative text |
| `ImageToolbarCommand.Dimension` | Set width/height in px |

```razor
<SfRichTextEditor>
    <RichTextEditorQuickToolbarSettings Image="@ImageTools" />
</SfRichTextEditor>

@code {
    private List<ImageToolbarItemModel> ImageTools = new()
    {
        new() { Command = ImageToolbarCommand.Replace },
        new() { Command = ImageToolbarCommand.Align },
        new() { Command = ImageToolbarCommand.Caption },
        new() { Command = ImageToolbarCommand.Remove },
        new() { Command = ImageToolbarCommand.HorizontalSeparator },
        new() { Command = ImageToolbarCommand.AltText },
        new() { Command = ImageToolbarCommand.Dimension }
    };
}
```

---

## Table Quick Toolbar Commands

Configure via `RichTextEditorQuickToolbarSettings.Table`:

| Command | Effect |
|---|---|
| `TableToolbarCommand.TableHeader` | Toggle table header row |
| `TableToolbarCommand.TableRows` | Insert/delete row dropdown (above / below) |
| `TableToolbarCommand.TableColumns` | Insert/delete column dropdown (left / right) |
| `TableToolbarCommand.TableCell` | Merge / split cells |
| `TableToolbarCommand.BackgroundColor` | Set background color of selected cell(s) |
| `TableToolbarCommand.Alignments` | Align cell content horizontally (left / center / right) |
| `TableToolbarCommand.TableCellVerticalAlign` | Align cell content vertically (top / middle / bottom) |
| `TableToolbarCommand.Styles` | Apply predefined border/style presets |
| `TableToolbarCommand.TableEditProperties` | Edit table width, padding, and cell spacing |
| `TableToolbarCommand.TableRemove` | Delete the entire table |
| `TableToolbarCommand.Separator` | Visual divider between toolbar groups |

---

## Utility Tools

| `ToolbarCommand` | Effect |
|---|---|
| `SourceCode` | Toggle HTML source view |
| `Preview` | Show render preview |
| `FullScreen` | Maximise editor to viewport |
| `Print` | Print editor content |
| `FormatPainter` | Copy formatting; double-click for sticky mode |
| `Undo` | Undo last action |
| `Redo` | Redo last undone action |
| `Separator` | Visual divider between toolbar groups |

---

## Removing Default Tools

Pass only the tools you want — the default set is replaced entirely:

```razor
<SfRichTextEditor>
    <RichTextEditorToolbarSettings Items="@MinimalTools" />
</SfRichTextEditor>

@code {
    private List<ToolbarItemModel> MinimalTools = new()
    {
        new() { Command = ToolbarCommand.Bold },
        new() { Command = ToolbarCommand.Italic },
        new() { Command = ToolbarCommand.Underline },
        new() { Command = ToolbarCommand.Separator },
        new() { Command = ToolbarCommand.Undo },
        new() { Command = ToolbarCommand.Redo }
    };
}
```

> Omitting a tool from `Items` removes it; you don't need any separate "remove" call.
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall