【文件属性】:
文件名称:编辑者
文件大小:2.72MB
文件格式:ZIP
更新时间:2021-02-15 22:52:23
JavaScript
UEditor富文本编辑器
iframe使用
<iframe class="ueditor" id="ueditor" src="index.html" frameborder="no" border="0" marginwidth="0" marginheight="0"
scrolling="no" allowtransparency="yes"></iframe>
设置html内容,获取html内容,监听内容变化,初始化完成事件
var ueIframeWin = document.getElementById("editormd").contentWindow;
setTimeout(function () {
//设置html内容
ueIframeWin.postMessage({
method: 'setContent',