升级summernote到最新版本v0.8.11

This commit is contained in:
RuoYi
2019-01-09 16:22:45 +08:00
parent dc07b97cdb
commit 619e1d241a
11 changed files with 7296 additions and 7881 deletions

View File

@ -44,7 +44,7 @@
<script th:src="@{/ajax/libs/summernote/summernote-zh-CN.js}"></script>
<script type="text/javascript">
var prefix = ctx + "system/notice";
$('.summernote').summernote({
height : '220px',
lang : 'zh-CN'
@ -60,7 +60,7 @@
function submitHandler() {
if ($.validate.form()) {
var sHTML = $('.summernote').code();
var sHTML = $('.summernote').summernote('code');
$("#noticeContent").val(sHTML);
$.operate.save(prefix + "/add", $('#form-notice-add').serialize());
}

View File

@ -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());
}