Skip to content
Projects

About

An easy-to-use, extensible rich-text editor based on slate.js, supporting Vue 2, Vue 3, React, Markdown, and multi-user collaboration.

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+3
in 15 days
+6
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README-en.md

Original

wangEditor-next 6

codecov GitHub stars

Chinese

Introduction

The original project wangEditor is temporarily not maintained due to the author's personal reasons. This project is a forked version that will continue to be maintained with minimal breaking changes.

An open-source web rich text editor that is ready to use out of the box with simple configuration. It supports JS, Vue, and React.

Features

  • Easy to use: Simple configuration and ready to use out of the box.
  • Multi-framework support: Works with JS, Vue, and React.
  • Customizable: Highly customizable to fit your needs.
  • Lightweight: Minimal footprint with high performance.

Installation

For Vue or React

npm install @wangeditor-next/editor --save

For HTML using CDN resources

<script src="https://unpkg.com/@wangeditor-next/editor@latest/dist/index.js"></script>

Upgrading from v5 to v6

v6 replaces built-in video text alignment with an explicit block-media layout. Video nodes now use align: 'left' | 'center' | 'right', and rendered or exported HTML uses a responsive <figure> container. Legacy video HTML that uses text-align remains importable and is migrated to the new alignment model.

When upgrading the editor in a React project, also upgrade to @wangeditor-next/editor-for-react@^3.0.0. Vue 2 and Vue 3 projects should use the latest version of their corresponding wrapper. See the v6.0.0 release notes for the complete changes.

Usage Examples

HTML

Try it on StackBlitz: HTML Example

Vue 2

Try it on StackBlitz: Vue 2 Example

Vue 3

Try it on StackBlitz: Vue 3 Example

React

Try it on StackBlitz: React Example

The source of truth for demos in this repository lives under apps/:

  • apps/demo-html
  • apps/demo-react
  • apps/demo-vue3
  • apps/demo-yjs-react
  • apps/demo-yjs-vue3

Run them locally:

pnpm demo:html
pnpm demo:react
pnpm demo:vue3
pnpm demo:yjs:react
pnpm demo:yjs:vue3

Notes:

  • StackBlitz links are for online reproduction and sharing
  • The maintained demo sources live in apps/*, not inside the remote sandboxes
  • Export a template from local source with pnpm demo:export-template demo-react <output-dir> or pnpm demo:export-template demo-vue3 <output-dir>
  • To sync templates automatically, configure the repo variables and secret used by .github/workflows/export-demo-templates.yml

Communication

Contribution

We welcome contributions! Please read the contribution guidelines and the development guide in the docs folder.

🌟 Support and Motivation

If you find this project helpful, please give it a ⭐️! Your support is my motivation to maintain and improve this project. Thank you!

Donation

To donate to the original project, support wangEditor's open-source work at https://opencollective.com/wangeditor (though no one donates anyway).

License

MIT License

Explore related projects

Loading…