Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
18ced19d
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1175
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
18ced19d
编写于
2月 03, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MD编辑器新增目录
上级
703dd147
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
53 addition
and
5 deletion
+53
-5
note/src/main/resources/template/js/note/noteEditMarkDown.js
note/src/main/resources/template/js/note/noteEditMarkDown.js
+4
-0
note/src/main/resources/template/tpl/note/noteEditMarkDown.html
...rc/main/resources/template/tpl/note/noteEditMarkDown.html
+33
-0
web/src/main/resources/template/assets/lib/editormd/js/editormd.js
...ain/resources/template/assets/lib/editormd/js/editormd.js
+16
-5
未找到文件。
note/src/main/resources/template/js/note/noteEditMarkDown.js
浏览文件 @
18ced19d
...
...
@@ -49,6 +49,10 @@ layui.config({
onchange
:
function
(){
if
(
!
initFirst
){
initFirst
=
true
;
layEditor
.
config
({
tocContainer
:
"
#custom-toc-container
"
,
tocDropdown
:
false
});
}
else
{
parent
.
$
(
"
#editMyNote
"
).
addClass
(
'
select
'
);
}
...
...
note/src/main/resources/template/tpl/note/noteEditMarkDown.html
浏览文件 @
18ced19d
...
...
@@ -8,11 +8,44 @@
<link
href=
"../../assets/lib/editormd/css/editormd.css"
rel=
"stylesheet"
/>
<!-- 页面解析markdown为HTML显示需要的css -->
<link
href=
"../../assets/lib/editormd/css/editormd.preview.min.css"
rel=
"stylesheet"
/>
<style
type=
"text/css"
>
.show-folder
{
position
:
absolute
;
top
:
120px
;
right
:
0px
;
z-index
:
999
;
background-color
:
#FFFFFF
;
width
:
170px
;
height
:
400px
;
border
:
1px
solid
gainsboro
;
}
.show-folder
.title
{
height
:
40px
;
line-height
:
40px
;
background-color
:
gainsboro
;
padding-left
:
10px
;
}
.show-folder
#custom-toc-container
{
padding
:
0px
;
overflow-x
:
auto
;
white-space
:
nowrap
;
height
:
calc
(
100%
-
40px
);
}
</style>
</head>
<body>
<div
class=
"file-console"
>
<div
id=
"content"
></div>
</div>
<div
class=
"show-folder"
id=
"markdownFolder"
>
<div
class=
"title"
>
<font>
目录
</font>
</div>
<div
class=
"markdown-body editormd-preview-container"
id=
"custom-toc-container"
></div>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
...
...
web/src/main/resources/template/assets/lib/editormd/js/editormd.js
浏览文件 @
18ced19d
...
...
@@ -61,7 +61,7 @@ layui.define(["jquery"], function(exports) {
"
h1
"
,
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
h6
"
,
"
|
"
,
"
list-ul
"
,
"
list-ol
"
,
"
hr
"
,
"
|
"
,
"
link
"
,
"
reference-link
"
,
"
image
"
,
"
code
"
,
"
preformatted-text
"
,
"
code-block
"
,
"
table
"
,
"
datetime
"
,
"
emoji
"
,
"
html-entities
"
,
"
pagebreak
"
,
"
|
"
,
"
goto-line
"
,
"
watch
"
,
"
preview
"
,
"
fullscreen
"
,
"
clear
"
,
"
search
"
"
goto-line
"
,
"
watch
"
,
"
preview
"
,
"
fullscreen
"
,
"
clear
"
,
"
search
"
,
"
catalogue
"
],
simple
:
[
"
undo
"
,
"
redo
"
,
"
|
"
,
...
...
@@ -132,6 +132,7 @@ layui.define(["jquery"], function(exports) {
onfullscreenExit
:
function
()
{},
onscroll
:
function
()
{},
onpreviewscroll
:
function
()
{},
catalogue
:
function
()
{},
imageUpload
:
false
,
imageFormats
:
[
"
jpg
"
,
"
jpeg
"
,
"
gif
"
,
"
png
"
,
"
bmp
"
,
"
webp
"
],
...
...
@@ -210,7 +211,8 @@ layui.define(["jquery"], function(exports) {
fullscreen
:
"
fa-arrows-alt
"
,
clear
:
"
fa-eraser
"
,
help
:
"
fa-question-circle
"
,
info
:
"
fa-info-circle
"
info
:
"
fa-info-circle
"
,
catalogue
:
"
fa-list
"
},
toolbarIconTexts
:
{},
...
...
@@ -256,7 +258,8 @@ layui.define(["jquery"], function(exports) {
clear
:
"
清空
"
,
search
:
"
搜索
"
,
help
:
"
使用帮助
"
,
info
:
"
关于
"
+
editormd
.
title
info
:
"
关于
"
+
editormd
.
title
,
catalogue
:
"
目录
"
},
buttons
:
{
enter
:
"
确定
"
,
...
...
@@ -1425,9 +1428,9 @@ layui.define(["jquery"], function(exports) {
var
_this
=
this
;
var
editor
=
this
.
editor
;
var
settings
=
this
.
settings
;
this
.
codeMirror
.
remove
();
this
.
setCodeMirror
();
if
(
!
settings
.
readOnly
)
...
...
@@ -3167,6 +3170,14 @@ layui.define(["jquery"], function(exports) {
info
:
function
()
{
this
.
showInfoDialog
();
},
catalogue
:
function
(){
if
(
$
(
"
#markdownFolder
"
).
is
(
'
:hidden
'
)){
$
(
"
#markdownFolder
"
).
show
();
}
else
{
$
(
"
#markdownFolder
"
).
hide
();
}
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录