代码:
认证0级讲师
多看文档 :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);
多看文档 :https://www.kancloud.cn/wangf...