Basic Usage

CDN

<div id="div1">
    <p>weblcome use <b>wangEditor</b> richEditor</p>
</div>

<script type="text/javascript" src="//unpkg.com/wangeditor/dist/wangEditor.min.js"></script>
<script type="text/javascript">
    const E = window.wangEditor
    const editor = new E('#div1')
    // or const editor = new E( document.getElementById('div1') )
    editor.create()
</script>

Npm

import E from 'wangeditor'
const editor = new E('#div1')
// or const editor = new E( document.getElementById('div1') )
editor.create()
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2021-07-04 12:51:04

results matching ""

    No results matching ""