Home  >  Q&A  >  body text

javascript - How does the front-end rich text editor wangeditor display rich text?

Code:

PHP中文网PHP中文网2674 days ago1174

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-06-26 11:01:00

    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);

    reply
    0
  • Cancelreply