Skip to main content

更改默认富文本编辑器

🌐 Change the default rich text editor

Page summary:

Strapi 的管理面板为 richtext 字段内置了 WYSIWYG Markdown 编辑器。你可以通过从市场安装第三方编辑器插件或创建自定义字段以实现更深入的集成来替换它。

🌐 Strapi's admin panel includes a built-in WYSIWYG markdown editor for richtext fields. You can replace it by installing third-party editor plugins from the Marketplace or creating a custom field for deeper integration.

Note

本页涵盖用于 richtext 字段的 所见即所得 Markdown 编辑器 的自定义内容。对于 Blocks 字段(基于 JSON 的富文本编辑器),请参阅 内容管理器 API:addRichTextBlocks

🌐 This page covers customization of the WYSIWYG markdown editor used for richtext fields. For the Blocks field (the JSON-based rich text editor), see Content Manager APIs: addRichTextBlocks.

Strapi 的 管理面板 附带了一个内置的富文本编辑器。要更改默认编辑器,你有几种选择:

🌐 Strapi's admin panel comes with a built-in rich text editor. To change the default editor, several options are at your disposal:

  • 你可以通过访问 Strapi's Marketplace安装第三方插件,例如用于CKEditor的插件。
  • 你可以创建自己的插件来创建和注册一个完全自定义的所见即所得字段(参见 自定义字段文档)。
Next steps

评估编辑器时,建议先从 Marketplace 下载插件进行快速试用,如果需要更深入的集成(例如架构、验证或自定义工具栏行为),则可以考虑使用自定义字段。

🌐 When evaluating editors, start with a plugin from the Marketplace for a quick trial, then consider a custom field if you need deeper integration (schema, validation, or custom toolbar behavior).