Commit 48c34811 authored by Van's avatar Van

vditor

parent 98e7bd78
This diff is collapsed.
......@@ -36,6 +36,6 @@
"gulp-uglify": "^3.0.2"
},
"dependencies": {
"vditor": "^1.5.12"
"vditor": "^1.6.10"
}
}
......@@ -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.12/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vditor@latest/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.12/dist/js/highlight.js@9.15.8/styles/' +
Util.addStyle('https://cdn.jsdelivr.net/npm/vditor/dist/js/highlight.js/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.12/dist/js/highlight.js@9.15.8/highlight.pack.js',
url: 'https://cdn.jsdelivr.net/npm/vditor/dist/js/highlight.js/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.12/dist/index.min.js',
Util.addScript('https://cdn.jsdelivr.net/npm/vditor@latest/dist/index.min.js',
'vditorScript')
Vditor.mermaidRender(document.body)
......
This diff is collapsed.
......@@ -103,7 +103,7 @@ $.extend(Page.prototype, {
if (!$('#soloEditorComment').hasClass('vditor')) {
var that = this
Util.addScript(
'https://cdn.jsdelivr.net/npm/vditor@1.5.12/dist/index.min.js',
'https://cdn.jsdelivr.net/npm/vditor@latest/dist/index.min.js',
'vditorScript')
var toolbar = [
'emoji',
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Subproject commit cc3d01d682b9da3e8e112d0c9126a03293aa1c1d
Subproject commit 62950911ef5f7738b40938cccd14841b1d936214
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