聯(lián)系官方銷售客服
1835022288
028-61286886
我想使用js獲取內(nèi)容自動(dòng)填充到“內(nèi)容”字段,但是由于內(nèi)容這塊使用的是編輯器(默認(rèn)的或百度的),根據(jù)他的id好像無法自動(dòng)填充進(jìn)去,哪位大神幫忙看看要怎么弄呢
function fillContentToEditor() {
// 獲取輸入框內(nèi)容
var inputContent = document.getElementById('dr_yuanbiaoti').value;
// 填充到 ueditor 編輯器
var editor = UE.getEditor('Ueditor'); // 假設(shè) ueditor 編輯器實(shí)例名為 'editor'
editor.setContent(inputContent);
}
已解決,文檔沒找到
遇到同樣問題的同學(xué)可以看這里:http://www.zbshanke.com/doc/1086.html