ue.ready(function() {
//设置编辑器的内容
// ue.setContent('darf');
//获取html内容,返回: <p>hello</p>
var html = ue.getContent();
//获取纯文本内容,返回: hello
var txt = ue.getContentTxt();
var rubbsh = UE.getEditor('advanced_editor').execCommand( "getlocaldata" );
// alert(rubbsh)
// $('#advanced_editor').val(rubbsh);
ue.setContent(rubbsh);
});
转载于:https://my.oschina.net/bibo/blog/317536