var ue = UE.getEditor('editor1');
$(function(){
var content=ue.getContent();
alert(tontent);
});
报错:Uncaught TypeError
原因:获取的编辑器变量没有和 getContent()方法 放在同一个函数中
解决1:将获取的编辑器变量和 getContent()方法 放在同一个函数中
$(function(){
var ue = UE.getEditor('editor1');
var content=ue.getContent();
alert(tontent);
});
解决2:利用ue.addListener("ready", function () {}) 不建议