Commit a14fef6b authored by Van's avatar Van

fix #12801

parent 389ffbfd
This diff is collapsed.
......@@ -36,6 +36,6 @@
"gulp-uglify": "^3.0.2"
},
"dependencies": {
"vditor": "^1.5.4"
"vditor": "^1.5.12"
}
}
......@@ -165,7 +165,7 @@
</div>
</div>
<script src="${staticServePath}/js/lib/compress/admin-lib.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vditor@1.5.4/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vditor@1.5.12/dist/index.min.js"></script>
<script src="${staticServePath}/js/common${miniPostfix}.js"></script>
<#if "" == miniPostfix>
<script src="${staticServePath}/js/admin/admin.js"></script>
......
......@@ -147,7 +147,7 @@ var Util = {
if ($('.vditor-reset pre > code').length === 0) {
return
}
Util.addStyle('https://cdn.jsdelivr.net/npm/vditor@1.5.4/dist/js/highlight.js@9.15.8/styles/' +
Util.addStyle('https://cdn.jsdelivr.net/npm/vditor@1.5.12/dist/js/highlight.js@9.15.8/styles/' +
Label.hljsStyle + '.css', 'vditorHljsStyle')
var initHljs = function () {
......@@ -158,7 +158,7 @@ var Util = {
if (!Label.markedAvailable) {
if (typeof hljs === 'undefined') {
$.ajax({
url: 'https://cdn.jsdelivr.net/npm/vditor@1.5.4/dist/js/highlight.js@9.15.8/highlight.pack.js',
url: 'https://cdn.jsdelivr.net/npm/vditor@1.5.12/dist/js/highlight.js@9.15.8/highlight.pack.js',
dataType: 'script',
cache: true,
success: function () {
......@@ -182,7 +182,7 @@ var Util = {
return
}
Util.addScript('https://cdn.jsdelivr.net/npm/vditor@1.5.4/dist/index.min.js',
Util.addScript('https://cdn.jsdelivr.net/npm/vditor@1.5.12/dist/index.min.js',
'vditorScript')
Vditor.mermaidRender(document.body)
......
This diff is collapsed.
......@@ -102,7 +102,7 @@ $.extend(Page.prototype, {
if (!$('#soloEditorComment').hasClass('vditor')) {
var that = this
Util.addScript('https://cdn.jsdelivr.net/npm/vditor@1.5.4/dist/index.min.js', 'vditorScript')
Util.addScript('https://cdn.jsdelivr.net/npm/vditor@1.5.12/dist/index.min.js', 'vditorScript')
window.vditor = new Vditor('soloEditorComment', {
placeholder: that.tips.commentContentCannotEmptyLabel,
height: 180,
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment