所需配置(qui框架)
<!--ueEditor编辑器start-->
<script>
window.UEDITOR_HOME_URL = ctx+"/static/qui/ueditor/";
</script>
<script type="text/javascript" charset="utf-8" src="${ctx}/static/qui/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctx}/static/qui/ueditor/ueditor.all.js"></script>
<!--ueEditor编辑器start-->
1.jsp:
<script type="text/plain" id="xx" name="xx" style=" 95%;">
2.js:
// 自定义的编辑器配置项,此处定义的配置项将覆盖editor_config.js中的同名配置
var editorOption = {
};
var editor_a = new baidu.editor.ui.Editor(editorOption);
editor_a.render('merchantIntroduction');
赋值方式:
editor_a.setContent(data.xx);