Ueditor打开的dialog被遮挡
var ue = UE.getEditor('editor_container',{
toolbars: [[
'source', '|', 'undo', 'redo'
]]
**,zIndex : 2147483647 //编辑器层级的基数,默认是900**
});
Ueditor打开时不能全部显示或者只有文字
添加一下内容即可:
<link rel="stylesheet" type="text/css" media="screen" href="../resource/js/ueditor/themes/default/css/ueditor.css">
<script type="text/javascript" src="../resource/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="../resource/js/ueditor/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="../resource/js/ueditor/lang/zh-cn/zh-cn.js"></script>
Ueditor保存数据与回显
UE编辑器:
<div title="打标内容">
<textarea id="editor_container" name="editor_container" style="width: 800px;height: 400px; margin: 0 auto;"></textarea>
</div>
添加隐藏域保存数据
<s:hidden name="dataMap.content" id="content"></s:hidden>
回显
ue.ready(function() {
//设置编辑器的内容
ue.setContent($("#content").val());
});
//保存打标内容
function savehtml(){
$("#content").val(ue.getContent());
alert("保存成功!");
}
controller.jsp报错
maven添加依赖
<dependency>
<groupId>com.baidu</groupId>
<artifactId>ueditor</artifactId>
<version>1.1.2</version>
</dependency>
动态修改config.jsp文件
https://blog.csdn.net/qq_28915045/article/details/81940322
未找到上传数据
https://blog.csdn.net/qq_34354426/article/details/76699206