Skip to content

Installation

Npm

Install editor package

shell
yarn add @wangeditor-next/editor
# npm install @wangeditor-next/editor --save

Install React editor component (optional)

shell
yarn add @wangeditor-next/editor-for-react
# npm install @wangeditor-next/editor-for-react --save

Install Vue 2.x editor component (optional)

shell
yarn add @wangeditor-next/editor-for-vue2
# npm install @wangeditor-next/editor-for-vue2 --save

Install Vue 3.x editor component (optional)

shell
yarn add @wangeditor-next/editor-for-vue@next
# npm install @wangeditor-next/editor-for-vue@next --save

CDN

html
<!-- import css -->
<link href="https://cdn.jsdelivr.net/npm/@wangeditor-next/editor@latest/dist/css/style.css" rel="stylesheet">

<!-- import js -->
<script src="https://cdn.jsdelivr.net/npm/@wangeditor-next/editor@latest/dist/index.min.js"></script>
<script>
    var E = window.wangEditor; // global variable
</script>

Released under the MIT License