Commit b4025810 authored by Van's avatar Van

🐛 fix #12766

parent 68fb79ba
......@@ -5670,9 +5670,9 @@
"dev": true
},
"vditor": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/vditor/-/vditor-1.3.0.tgz",
"integrity": "sha512-ahT+4EXrGMd1n0r6mICDDPQLhixl/VZD945+D3civWERALtPESLQJIL8HnuhMfZfj4QHeH+TgnikL+UlrlO/nQ==",
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/vditor/-/vditor-1.3.3.tgz",
"integrity": "sha512-wevQUSekX5u3PVLnVymax/wXsZqQ8hWRPdFnY659Xpbno2paXRdhM5oXt8y4AHqdfkKoMnsztCkCez7JkkZ9ZQ==",
"requires": {
"highlight.js": "^9.15.6",
"katex": "^0.10.1",
......
......@@ -36,6 +36,6 @@
"gulp-uglify": "^3.0.1"
},
"dependencies": {
"vditor": "^1.3.0"
"vditor": "^1.3.3"
}
}
......@@ -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.3.0/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vditor@1.3.3/dist/index.min.js"></script>
<script src="${staticServePath}/js/common${miniPostfix}.js"></script>
<#if "" == miniPostfix>
<script src="${staticServePath}/js/admin/admin.js"></script>
......
This diff is collapsed.
......@@ -147,8 +147,8 @@ var Util = {
if ($('.vditor-reset pre > code').length === 0) {
return
}
Util.addStyle('https://cdn.jsdelivr.net/npm/highlight.js@9.15.6/styles/' +
Label.hljsStyle + '.min.css', 'vditorHljsStyle')
Util.addStyle('https://cdn.jsdelivr.net/npm/vditor@1.3.3/dist/js/highlight.js@9.15.6/styles/' +
Label.hljsStyle + '.css', 'vditorHljsStyle')
var initHljs = function () {
hljs.initHighlighting.called = false
......@@ -158,7 +158,7 @@ var Util = {
if (!Label.markedAvailable) {
if (typeof hljs === 'undefined') {
$.ajax({
url: 'https://cdn.jsdelivr.net/npm/vditor@1.3.0/src/assets/js/highlight.pack.js',
url: 'https://cdn.jsdelivr.net/npm/vditor@1.3.3/dist/js/highlight.js@9.15.6/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.3.0/dist/index.min.js',
Util.addScript('https://cdn.jsdelivr.net/npm/vditor@1.3.3/dist/index.min.js',
'vditorScript')
Vditor.mermaidRender(document.body)
......
This diff is collapsed.
......@@ -113,7 +113,7 @@ $.extend(Page.prototype, {
if (!$('#soloEditorComment').hasClass('vditor')) {
var that = this
Util.addScript('https://cdn.jsdelivr.net/npm/vditor@1.3.0/dist/index.min.js', 'vditorScript')
Util.addScript('https://cdn.jsdelivr.net/npm/vditor@1.3.3/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.
Subproject commit 4e0efa0a535aea555882cb70415eca6fbbbf33f3
Subproject commit 588629cae68d3684c8296512a8fd7691356afe17
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