//首先定义编辑器
<script id="container" name="content" type="text/plain"></script>
var ue = UE.getEditor('container');
//赋初始值
ue.addListener("ready", function () {
ue.setContent(“初始值”);
});
//获取编辑器里的值
var htmlcontent = ue.getContent();
//让编辑器里的图片自适应(ueditor\themes\iframe.css)
img {
max-width: 100%;
body {
overflow-y: scroll !important;
}
.view {
word-break: break-all;
}
.vote_area {
display: block;
}
.vote_iframe {
background-color: transparent;
border: 0 none;
height: 100%;
}
#edui1_imagescale{display:none !important;}
}