javascript - How does the front-end rich text editor wangeditor display rich text?
PHP中文网
PHP中文网 2017-06-26 10:59:00
0
1
1171

Code:

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
过去多啦不再A梦

Read more documents: https://www.kancloud.cn/wangf...

    var E = window.wangEditor
    var editor = new E('#p1')
    editor.create()

    document.getElementById('btn1').addEventListener('click', function () {
        // 读取 html
        alert(editor.txt.html())
    }, false);
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!