# wangEditor-next 6 [![codecov](https://codecov.io/gh/wangeditor-next/wangEditor-next/graph/badge.svg?token=0ZSXFXJPK3)](https://codecov.io/gh/wangeditor-next/wangEditor-next) [![GitHub stars](https://img.shields.io/github/stars/wangeditor-next/wangEditor-next)](https://github.com/wangeditor-next/wangEditor-next/stargazers) [Chinese](./README.md) ## Introduction The original project [wangEditor](https://github.com/wangeditor-team/wangEditor) is temporarily not maintained due to the author's [personal reasons](https://juejin.cn/post/7272735633458413602). 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. - [Documentation](https://wangeditor-next.github.io/docs/) - [Demo](https://wangeditor-next.github.io/demo/) ![](./docs/images/editor.png) ## 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 ```shell npm install @wangeditor-next/editor --save ``` ### For HTML using CDN resources ```html ``` ## 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 `
` 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](https://github.com/wangeditor-next/wangEditor-next/releases/tag/v6.0.0) for the complete changes. ## Usage Examples ### HTML Try it on StackBlitz: [HTML Example](https://stackblitz.com/edit/stackblitz-starters-xxqmwl) ### Vue 2 Try it on StackBlitz: [Vue 2 Example](https://stackblitz.com/edit/vue2-vite-starter-hkmsif) ### Vue 3 Try it on StackBlitz: [Vue 3 Example](https://stackblitz.com/fork/github/wangeditor-next/demo-templates/tree/main/demo-vue3?title=wangEditor%20Vue%203%20Demo&startScript=dev) ### React Try it on StackBlitz: [React Example](https://stackblitz.com/fork/github/wangeditor-next/demo-templates/tree/main/demo-react?title=wangEditor%20React%20Demo&startScript=dev) 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: ```sh 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 ` or `pnpm demo:export-template demo-vue3 ` - To sync templates automatically, configure the repo variables and secret used by `.github/workflows/export-demo-templates.yml` ## Communication - [Discuss issues and suggestions](https://github.com/wangeditor-next/wangEditor-next/issues) ## Contribution We welcome contributions! Please read the [contribution guidelines](https://github.com/wangeditor-next/wangEditor-next/blob/master/docs/contribution-CN.md) and the development guide in the [docs](https://github.com/wangeditor-next/wangEditor-next/tree/master/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](https://opensource.org/licenses/MIT)