Logo Syncfusion Maui Rich Text Editor

Syncfusion Maui Rich Text Editor

Tổ chức
syncfusion
syncfusion-maui-rich-text-editor

Implements Syncfusion .NET MAUI Rich Text Editor (SfRichTextEditor) for WYSIWYG text editing with formatting, images, tables, hyperlinks, and code blocks. Use when building rich text editors, document editors, email composers, blog post editors, or messaging apps with formatting. Covers text styling, toolbar formatting, toolbar grouping with IsGrouped overlay menus, text transformation (UPPERCASE/lowercase), block-schema binding (TValue="Schema"), images, tables, hyperlinks, code blocks, HTML output, and the public GetText() method for plain-text extraction.

Tổng quan

Nhà phát hànhsyncfusion
Kho mãmaui-ui-components-skills
Tên kỹ năngsyncfusion-maui-rich-text-editor
Sao
61
Bản fork
1
Tệp đi kèm
12
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 12 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được syncfusion công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Syncfusion Maui Rich Text Editor trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-rich-text-editor
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/syncfusion/maui-ui-components-skills.git /tmp/maui-ui-components-skills
mkdir -p .claude/skills
cp -r /tmp/maui-ui-components-skills/skills/syncfusion-maui-rich-text-editor .claude/skills/syncfusion-maui-rich-text-editor
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Syncfusion Maui Rich Text Editor trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Syncfusion Maui Rich Text Editor ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Syncfusion Maui Rich Text Editor với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Implementing Syncfusion .NET MAUI Rich Text Editors

The Syncfusion .NET MAUI Rich Text Editor (SfRichTextEditor) provides a powerful WYSIWYG editing experience for creating richly formatted text content. It offers comprehensive formatting tools, customizable toolbar, image and table insertion, hyperlink management, and returns valid HTML markup. This skill guides you through implementing rich text editors for messaging apps, email composers, blog editors, note-taking applications, and any scenario requiring formatted text input.

When to Use This Skill

Use this skill when you need to:

  • Implement WYSIWYG text editors in .NET MAUI applications with formatting capabilities
  • Create email composers or messaging apps that support rich text formatting (bold, italic, lists, etc.)
  • Build blog editors, CMS interfaces, or forum post editors with HTML output
  • Add note-taking or document editing features with formatting toolbar
  • Enable feedback forms, review sections, or comment areas with rich content support
  • Implement text editors with images, tables, hyperlinks, and code blocks embedded in content
  • Embed formatted code snippets in technical documentation, blog posts, or developer-focused apps
  • Customize toolbar items and appearance for specific editing scenarios
  • Group toolbar items into context-aware overlay menus for mobile-first editing experiences
  • Apply text case transformations (UPPERCASE, lowercase) to user selections or programmatically via the Uppercase() and Lowercase() methods
  • Bind the editor to a typed block-schema model (TValue="Schema") instead of HTML for structured document workflows
  • Handle formatted text programmatically with methods for bold, italic, alignment, colors, etc.
  • Manage user interactions through events (text changes, hyperlink clicks, format changes)
  • Read plain text from the editor programmatically using the Task<string> GetText() method for character/word counts, search indexing, copy-to-clipboard, text-to-speech, SMS export, translation, and spell check
  • Apply advanced features like auto-sizing or Liquid Glass Effect for modern UI

Component Overview

  • WYSIWYG Editing - What-you-see-is-what-you-get interface for formatted text
  • Comprehensive Formatting - Bold, italic, underline, strikethrough, fonts, colors, alignment, lists, indentation
  • Customizable Toolbar - Rich, configurable toolbar with show/hide/custom items
  • Images & Tables - Seamless insertion and formatting of images and tables
  • Hyperlink Support - Insert, edit, and remove hyperlinks with click events
  • Code Block Support - Insert formatted code snippets that preserve structure and readability
  • Programmatic Control - Methods for applying formatting, managing content, and controlling editor state
  • Events - FormatChanged, TextChanged, HyperlinkClicked, Focused/Unfocused for reactive UI
  • HTML Output - Returns valid HTML markup for storage or transmission
  • AutoSize - Dynamic height adjustment based on content
  • Liquid Glass Effect - Modern Cupertino-style visual effects (iOS/macOS)

Public API Contract

  • The Value property is the only public content surface. It is typed as object, so always cast it to the expected runtime type when reading:
    • HTML mode (TValue="HTML"): cast to string
    • Schema mode (TValue="Schema"): cast to ObservableCollection<BlockNode>
  • For plain-text reads, use the public method Task<string> GetText() on SfRichTextEditor instead of stripping HTML yourself. It always returns the awaited plain-text content for both HTML and Schema modes.
  • The legacy Text and HtmlText properties are internal and must not be used in application code.
  • The legacy DefaultTextColor, DefaultFontSize, and DefaultFontFamily properties are obsolete; use per-paragraph or inline formatting instead.

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installing the Syncfusion.Maui.RichTextEditor NuGet package
  • Adding SfRichTextEditor to XAML and C#
  • Namespace registration and basic setup
  • Enabling the toolbar (ShowToolbar property)
  • Customizing toolbar items with ToolbarItems collection
  • First working example with formatted text

Toolbar Configuration

📄 Read: references/toolbar.md

  • Positioning toolbar (top or bottom) with ToolbarPosition property
  • Available toolbar items (Bold, Italic, FontFamily, FontSize, lists, images, tables, etc.)
  • Adding or removing specific toolbar items
  • Separator items for visual grouping
  • Inline link tooltip functionality
  • Customizing toolbar appearance with ToolbarSettings
  • Background color, text color, separator styling
  • Scroll button visibility and icon customization
  • Platform-specific toolbar behaviors

Toolbar Grouping

📄 Read: references/toolbar-grouping.md

  • Enabling the grouped (overlay) toolbar with the IsGrouped property
  • Mapping each ToolbarItems entry to a context-aware overlay group
  • Mobile-first UX for touch devices (Android, iOS)
  • Choosing a focused set of items for grouped layouts
  • Pairing IsGrouped with ToolbarPosition and ToolbarSettings
  • Platform conditionals to switch between grouped and inline toolbars
  • Troubleshooting empty or overly crowded overlay menus

Text Transformation

📄 Read: references/text-transformation.md

  • Using the TextTransform toolbar item from RichTextToolbarOptions
  • Selection-based case-change actions (UPPERCASE, lowercase, etc.)
  • Adding TextTransform to a custom toolbar with Separator grouping
  • Programmatic Uppercase() and Lowercase() methods for transforming the current selection
  • Combining text transformation with bold, italic, underline, and other character formatting
  • Using TextTransform with the grouped (overlay) toolbar
  • Real-world use cases: messaging apps, comments, blog and CMS editors
  • Troubleshooting and best practices for discoverability

Formatting and Customization

📄 Read: references/formatting-and-customization.md

  • Customizing editor appearance (background, border, word wrap)
  • Programmatic formatting methods (ToggleBold, ToggleItalic, ToggleUnderline, etc.)
  • Character formatting (bold, italic, underline, strikethrough, subscript, superscript)
  • List formatting (bullet and numbered lists)
  • Text alignment (left, right, center, justify)
  • Applying font family, font size, text color, and highlight color
  • Paragraph formatting and heading styles
  • Indentation control (increase/decrease)
  • Default text styles for new content

Content Management

📄 Read: references/content-management.md

  • Setting plain text through the Value property with TValue="HTML"
  • Setting HTML formatted text through the Value property with TValue="HTML"
  • Getting selected HTML content (GetSelectedText method)
  • Configuring placeholder text and styling
  • Programmatic cursor control (MoveCursorToStart, MoveCursorToEnd)
  • Focus and unfocus methods
  • Undo and redo functionality
  • Content manipulation patterns and best practices

Schema Block

📄 Read: references/schema-block.md

  • Switching the content model with TValue="Schema" and RichTextEditorValueType.Schema
  • Binding an ObservableCollection to the Value property
  • Supported node types: ParagraphNode, HeadingNode, TextNode, BulletListNode, OrderedListNode, ListItemNode, ImageNode, CodeBlockNode, and LinkMark
  • Two-way binding so editor edits update the bound collection
  • Composing block nodes for headings, lists, links, images, and code blocks
  • Loading and saving structured documents through the block schema
  • Pairing the schema model with the toolbar and other editor features
  • Troubleshooting empty editors, ignored edits, and migration from HTML

Images and Tables

📄 Read: references/images-and-tables.md

  • Image insertion overview and ImageRequested event
  • Inserting images from gallery, file picker, stream, or URI
  • RichTextEditorImageSource configuration (format, size, source)
  • Platform-specific permissions (MacCatalyst file access)
  • Table insertion from toolbar with row/column dialog
  • Programmatic table insertion with InsertTable method
  • Specifying table dimensions
  • Examples for both images and tables

Hyperlinks

📄 Read: references/hyperlinks.md

  • Inserting hyperlinks with InsertHyperlink method
  • Display text and URL parameters
  • Editing existing hyperlinks with EditHyperlink method
  • Removing hyperlinks while preserving text (RemoveHyperlink)
  • Link quick tooltip behavior
  • HyperlinkClicked event for handling link interactions
  • Extracting link URL and display text from events
  • Use cases and patterns for hyperlink management

Code Blocks

📄 Read: references/code-blocks.md

  • Enabling code blocks using the CodeBlock toolbar item
  • Customizing code block languages with CodeBlockLanguages property
  • XAML and C# setup with RichTextToolbarItem and RichTextToolbarOptions.CodeBlock
  • Configuring language dropdown (replacing or appending custom languages)
  • Combining code blocks with other formatting tools using Separator items
  • Use cases for technical documentation, blogging, and developer-centric tools
  • Best practices for toolbar placement and HTML content round-tripping

Events and Interactions

📄 Read: references/events-and-interactions.md

  • FormatChanged event for tracking formatting state
  • TextChanged event with old and new HTML content
  • HyperlinkClicked event with URL and display text
  • Focused and Unfocused events for input state
  • Event subscription patterns in XAML and C#
  • Using events for contextual UI updates
  • Combining events with programmatic formatting
  • Real-world event handling scenarios
  • Public Task<string> GetText() method for plain-text extraction (use it instead of stripping HTML from Value)

Advanced Features

📄 Read: references/advanced-features.md

  • AutoSize functionality with EnableAutoSize property
  • Dynamic height adjustment based on content
  • Layout considerations for auto-sizing editors
  • Liquid Glass Effect with EnableLiquidGlassEffect (iOS/macOS)
  • Platform requirements (.NET 10, iOS/macOS 26+)
  • Cupertino theme integration and transparent backgrounds
  • Customizing toolbar and editor corner radius
  • Theme keys for visual customization
  • Combining advanced features for modern UI

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Syncfusion Maui Rich Text Editor làm được gì?

Implements Syncfusion .NET MAUI Rich Text Editor (SfRichTextEditor) for WYSIWYG text editing with formatting, images, tables, hyperlinks, and code blocks. Use when building rich text editors, document editors, email composers, blog post editors, or messaging apps with formatting. Covers text styling, toolbar formatting, toolbar grouping with IsGrouped overlay menus, text transformation (UPPERCASE/lowercase), block-schema binding (TValue="Schema"), images, tables, hyperlinks, code blocks, HTML output, and the public GetText() method for plain-text extraction.

Vì sao nên dùng Syncfusion Maui Rich Text Editor trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Syncfusion Maui Rich Text Editor là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Syncfusion Maui Rich Text Editor trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-rich-text-editor. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Syncfusion Maui Rich Text Editor?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Syncfusion Maui Rich Text Editor với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Syncfusion Maui Rich Text Editor với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Syncfusion Maui Rich Text Editor có miễn phí không?

Kỹ năng này được syncfusion phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇