mirror of
https://github.com/yangzongzhuan/RuoYi.git
synced 2025-10-20 04:27:41 +00:00
升级summernote到最新版本v0.8.11
This commit is contained in:
@@ -52,20 +52,20 @@
|
||||
lang : 'zh-CN'
|
||||
});
|
||||
var content = $("#noticeContent").val();
|
||||
$('#editor').code(content);
|
||||
$('#editor').summernote('code', content);
|
||||
});
|
||||
|
||||
$("#form-notice-edit").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
noticeTitle:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
var sHTML = $('.summernote').code();
|
||||
var sHTML = $('.summernote').summernote('code');
|
||||
$("#noticeContent").val(sHTML);
|
||||
$.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
|
||||
}
|
||||
|
Reference in New Issue
Block a user