Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

syncfusion-aspnetcore-rich-text-editorSynfusion aspnetcore 富文本编辑器

Agent Skill

syncfusion-aspnetcore-rich-text-editor 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

247

周安装

10

GitHub Stars

公开资料未说明

下载量

78
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-aspnetcore-rich-text-editor(Synfusion aspnetcore 富文本编辑器)
来源仓库:https://github.com/syncfusion/aspnetcore-ui-components-skills
仓库路径:skills/syncfusion-aspnetcore-rich-text-editor
安装命令:
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-rich-text-editor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-rich-text-editor

简介

同步融合 ASP.NET Core 富文本编辑器组件,支持格式化内容创作。

  • 适用于博客写作、邮件编辑、公告发布等内容管理场景。
  • 通过 GitHub 安装并集成 HTML 净化模块,防止 XSS 攻击。
  • 使用前需配置允许的标签白名单,过滤危险脚本内容。
  • 富媒体插入时应限制文件大小,避免页面加载缓慢。syncfusion-aspnetcore-rich-text-editor 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing the Syncfusion ASP.NET Core Rich Text Editor

The Syncfusion ASP.NET Core Rich Text Editor (<ejs-richtexteditor>) is a single component that supports two editing modes:

  • HTML mode (default) — WYSIWYG editor producing valid HTML markup
  • Markdown mode (editorMode="Markdown") — plain-text markdown editor with optional HTML preview

Both modes share the same tag helper, toolbar system, events, and most features. Choose the mode based on what your output format needs to be.

Editor Mode Decision

User wants to edit formatted content → output is HTML?
  └─ Use default HTML mode (no editorMode needed)

User wants to write/edit Markdown text?
  └─ Set editorMode="Markdown"
     └─ Add Marked.js for live preview (see references/markdown-features.md)

When to Use This Skill

  • Adding a rich text / WYSIWYG editor to an ASP.NET Core Razor page or MVC view
  • Implementing a Markdown editor in ASP.NET Core
  • Configuring toolbars, toolbar types, or custom toolbar tools
  • Handling image, video, or audio uploads within the editor
  • Inserting and managing tables
  • Enabling inline editing, iframe mode, or resizable editor
  • Integrating AI assistant, mentions, emoji picker, slash menu, or mail merge
  • Getting, setting, or saving editor values; auto-save; character count
  • Form validation with rich text content
  • Read-only or disabled editor states
  • XSS prevention and security
  • Accessibility, keyboard support, globalization, RTL
  • Handling editor events (lifecycle, focus, toolbar, upload, dialog, AI)
  • Looking up available properties, types, and defaults
  • Calling editor methods programmatically from JavaScript

Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • NuGet installation and tag helper registration
  • CDN stylesheet and script references
  • Basic HTML editor (default mode)
  • Basic Markdown editor (editorMode="Markdown")
  • Initial value binding via ViewBag
  • Toolbar configuration basics

Editor Modes & Display Options

📄 Read: references/editor-modes.md

  • HTML mode vs Markdown mode (editorMode property)
  • IFrame mode for isolated editing (iframeSettings)
  • Inline editing mode (inlineMode)
  • Resizable editor (enableResize)
  • Setting editor height and width

Toolbar Configuration

📄 Read: references/toolbar.md

  • Toolbar types: Expand, MultiRow, Scrollable, Popup
  • Sticky / floating toolbar (enableFloating, floatingToolbarOffset)
  • Toolbar position (top / bottom)
  • Quick toolbar for images, links, text, and tables
  • HTML mode toolbar items reference
  • Markdown mode toolbar items reference

Text Formatting

📄 Read: references/text-formatting.md

  • Basic text styles: Bold, Italic, Underline, StrikeThrough, InlineCode
  • Font name, size, color, background color
  • Headings and paragraph formats
  • Text alignments and indent/outdent
  • Lists (ordered/unordered), blockquote, quotation formatting

Markdown Features

📄 Read: references/markdown-features.md

  • Full supported markdown syntax reference
  • Custom markdown format configuration
  • Live Markdown-to-HTML preview with Marked.js
  • Table and image insertion in Markdown mode
  • Mention support in Markdown mode

Media & Links

📄 Read: references/media-and-links.md

  • Image insertion, upload to server, drag-and-drop
  • Image quick toolbar (caption, alt text, dimensions, alignment)
  • Video and audio insertion
  • Link insertion and quick toolbar
  • File browser integration

Tables

📄 Read: references/table.md

  • Inserting tables and configuring the CreateTable tool
  • Table quick toolbar (rows, columns, merge, split, styles)
  • Cell properties, background color, alignment
  • Nesting tables
  • Table selection and copy/paste

Smart Editing Features

📄 Read: references/smart-editing.md

  • Emoji picker
  • Slash menu
  • Mentions integration with the Mention component
  • Mail merge
  • Format painter
  • Code block formatting

AI Assistant

📄 Read: references/ai-assistant.md

  • Enabling AICommands and AIQuery toolbar items
  • Streaming and non-streaming AI response handling
  • AiAssistantPromptRequest event
  • addAIPromptResponse method

Editor Value & Content Management

📄 Read: references/editor-value.md

  • Getting and setting HTML/Markdown values
  • getHtml(), getText(), getCharCount() methods
  • Auto-save with saveInterval
  • Placeholder text
  • Character count (showCharCount, maxLength)
  • HTML-encoded value (enableHtmlEncode)
  • Source code / code view editing
  • Paste and clipboard cleanup
  • Import and export (Word/PDF)
  • Undo/redo management

Validation & Security

📄 Read: references/validation-security.md

  • Form validation integration (FormValidator)
  • Read-only mode (readonly)
  • Disable editor (enabled)
  • XSS prevention (enableHtmlSanitizer, beforeSanitizeHtml)
  • XHTML validation
  • Style encapsulation

Customization

📄 Read: references/customization.md

  • Custom toolbar tools (template-based buttons)
  • Built-in toolbar items reference
  • CSS styling and theme customization
  • Enter key / Shift+Enter key behavior (enterKey, shiftEnterKey)
  • execCommand API for programmatic formatting
  • Third-party integrations (CodeMirror)
  • enableToolbarItem / disableToolbarItem methods

Accessibility & Globalization

📄 Read: references/accessibility-globalization.md

  • WCAG 2.2 AA compliance
  • ARIA roles and attributes
  • Keyboard shortcuts (HTML and Markdown modes)
  • Localization and globalization (locale, enableRtl)

Events

📄 Read: references/events.md

  • Lifecycle events: Created, Destroyed
  • Focus/blur events: Focus, Blur, Change
  • Toolbar/command events: ActionBegin, ActionComplete
  • Paste/clipboard events: BeforePasteCleanup, AfterPasteCleanup, BeforeClipboardWrite
  • Dialog events: BeforeDialogOpen, DialogOpen, BeforeDialogClose, DialogClose
  • Popup events: BeforePopupOpen, BeforePopupClose, BeforeQuickToolbarOpen
  • Image upload events: ImageSelected, BeforeImageUpload, ImageUploading, ImageUploadSuccess, ImageUploadFailed, ImageRemoving, AfterImageDelete, BeforeImageDrop
  • Media upload events: FileSelected, BeforeFileUpload, FileUploading, FileUploadSuccess, FileUploadFailed, FileRemoving, AfterMediaDelete, BeforeMediaDrop
  • Security events: BeforeSanitizeHtml
  • Export events: DocumentExporting
  • AI Assistant events: AiAssistantPromptRequest, AiAssistantStopRespondingClick, AiAssistantToolbarClick

Properties

📄 Read: references/properties.md

  • Complete property reference with types, defaults, and descriptions
  • Core properties: Value, EditorMode, Placeholder, CssClass, Locale
  • State flags: Enabled, Readonly, EnableResize, EnablePersistence, EnableRtl, EnableTabKey
  • Content & encoding: EnableHtmlEncode, EnableHtmlSanitizer, EnableXhtml, EnableAutoUrl, EnableClipboardCleanup
  • Character count & auto-save: ShowCharCount, MaxLength, SaveInterval, AutoSaveOnIdle
  • Key behavior: EnterKey, ShiftEnterKey, FloatingToolbarOffset
  • Undo/redo: UndoRedoSteps, UndoRedoTimer
  • Complex settings objects: ToolbarSettings, QuickToolbarSettings, IframeSettings, InlineMode, InsertImageSettings, InsertVideoSettings, InsertAudioSettings, PasteCleanupSettings, TableSettings, FontFamily, FontColor, BackgroundColor, Format, SlashMenuSettings, EmojiPickerSettings, FormatPainterSettings, CodeBlockSettings, AiAssistantSettings, ImportWordSettings, ExportWordSettings, ExportPdfSettings, FileManagerSettings

Methods

📄 Read: references/methods.md

  • Content methods: getHtml(), getText(), getContent(), getSelectedHtml(), getXhtml(), getCharCount(), selectAll(), selectRange(), print()
  • Command execution: executeCommand() with full CommandName enum reference
  • Toolbar methods: enableToolbarItem(), disableToolbarItem(), removeToolbarItem()
  • Focus methods: focusIn(), focusOut()
  • Inline toolbar: showInlineToolbar(), hideInlineToolbar()
  • Dialog methods: showDialog(), closeDialog()
  • Undo/redo: clearUndoRedo()
  • Source code: showSourceCode()
  • Full screen: showFullScreen()
  • Emoji picker: showEmojiPicker()
  • AI Assistant: addAIPromptResponse(), executeAIPrompt(), getAIPromptHistory(), clearAIPromptHistory(), showAIAssistantPopup(), hideAIAssistantPopup()
  • Lifecycle: refresh(), refreshUI(), dataBind(), destroy()
  • Security: sanitizeHtml()

Quick Start

HTML Editor (default)

<!-- _ViewImports.cshtml -->
@addTagHelper *, Syncfusion.EJ2

<!-- _Layout.cshtml <head> -->
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/{{ site.ej2version }}/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/{{ site.ej2version }}/dist/ej2.min.js"></script>

<!-- _Layout.cshtml <body> end -->
<ejs-scripts></ejs-scripts>

<!-- Index.cshtml -->
<ejs-richtexteditor id="editor" value="@ViewBag.value">
    <e-richtexteditor-toolbarsettings items="@ViewBag.tools"></e-richtexteditor-toolbarsettings>
</ejs-richtexteditor>
// HomeController.cs
public ActionResult Index()
{
    ViewBag.value = "<p>Start editing here...</p>";
    ViewBag.tools = new[] {
        "Bold", "Italic", "Underline", "|",
        "Formats", "Alignments", "OrderedList", "UnorderedList", "|",
        "CreateLink", "Image", "CreateTable", "|",
        "SourceCode", "|", "Undo", "Redo"
    };
    return View();
}

Markdown Editor

<ejs-richtexteditor id="markdown-editor" editorMode="Markdown" value="@ViewBag.value">
    <e-richtexteditor-toolbarsettings items="@ViewBag.tools"></e-richtexteditor-toolbarsettings>
</ejs-richtexteditor>
public ActionResult Index()
{
    ViewBag.value = "**Hello World** — start writing *markdown* here.";
    ViewBag.tools = new[] {
        "Bold", "Italic", "StrikeThrough", "InlineCode", "|",
        "Formats", "Blockquote", "OrderedList", "UnorderedList", "|",
        "CreateLink", "Image", "CreateTable", "|", "Undo", "Redo"
    };
    return View();
}

Common Patterns

Read editor value on form submit

<form id="form-element">
    <ejs-richtexteditor id="rte" name="rteContent" value="@ViewBag.value"></ejs-richtexteditor>
    <button type="submit">Submit</button>
</form>
<script>
    document.querySelector('form').onsubmit = function () {
        var rte = document.getElementById('rte').ej2_instances[0];
        console.log(rte.getHtml());
    };
</script>

Image upload to server

<ejs-richtexteditor id="editor">
    <e-richtexteditor-insertimagesettings
        saveUrl="/Home/SaveImage"
        removeUrl="/Home/RemoveImage"
        path="./Uploads/">
    </e-richtexteditor-insertimagesettings>
</ejs-richtexteditor>

Inline editing

<ejs-richtexteditor id="inline" value="@ViewBag.value">
    <e-richtexteditor-inlinemode enable="true" onSelection="true"></e-richtexteditor-inlinemode>
</ejs-richtexteditor>

Character count with limit

<ejs-richtexteditor id="editor" showCharCount="true" maxLength="500" value="@ViewBag.value">
</ejs-richtexteditor>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.88%
按下载量换算26

Claude

33.31%
按下载量换算26

Cursor

18.62%
按下载量换算15

Gemini CLI

9.09%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills