Pre Merge pull request !139 from Dulk/opt-summernote

This commit is contained in:
Dulk 2019-11-01 09:32:11 +08:00 committed by Gitee
commit a8901b1970
4 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,4 @@
/*让编辑器点击toolbar时的弹出模块位置以编辑器为基准*/
.modal.in {
position: absolute;
}

View File

@ -90,6 +90,9 @@
<link th:href="@{/ajax/libs/summernote/summernote.css}" rel="stylesheet"/>
<link th:href="@{/ajax/libs/summernote/summernote-bs3.css}" rel="stylesheet"/>
</div>
<div th:fragment="summernote-css-opt">
<link th:href="@{/ajax/libs/summernote/summernote-opt.css}" rel="stylesheet"/>
</div>
<div th:fragment="summernote-js">
<script th:src="@{/ajax/libs/summernote/summernote.min.js}"></script>
<script th:src="@{/ajax/libs/summernote/summernote-zh-CN.js}"></script>

View File

@ -3,6 +3,7 @@
<head>
<th:block th:include="include :: header('新增通知公告')" />
<th:block th:include="include :: summernote-css" />
<th:block th:include="include :: summernote-css-opt" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
@ -46,7 +47,7 @@
$('.summernote').summernote({
placeholder: '请输入公告内容',
height : 192,
height : 350,
lang : 'zh-CN',
followingToolbar: false,
callbacks: {

View File

@ -3,6 +3,7 @@
<head>
<th:block th:include="include :: header('修改通知公告')" />
<th:block th:include="include :: summernote-css" />
<th:block th:include="include :: summernote-css-opt" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
@ -48,7 +49,7 @@
$(function() {
$('.summernote').summernote({
placeholder: '请输入公告内容',
height : 192,
height : 350,
lang : 'zh-CN',
followingToolbar: false,
callbacks: {