Commit 2b74257c authored by Van's avatar Van

🎨 fix #12653

parent ab6dc83d
......@@ -31,7 +31,7 @@
<title>${adminConsoleLabel} - ${blogTitle}</title>
<link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-base${miniPostfix}.css?${staticResourceVersion}" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-admin${miniPostfix}.css?${staticResourceVersion}" />
<link type="text/css" rel="stylesheet" href="https://vditor.b3log.org/0.1.8/index.classic.css" />
<link type="text/css" rel="stylesheet" href="https://vditor.b3log.org/0.2.0/index.classic.css" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/js/lib/highlight-9.13.1/styles/github.css?${staticResourceVersion}" />
<link rel="icon" type="image/png" href="${staticServePath}/favicon.png" />
<link rel="manifest" href="${servePath}/manifest.json">
......@@ -169,7 +169,7 @@
</div>
</div>
<script src="${staticServePath}/js/lib/compress/admin-lib.min.js"></script>
<script src="https://vditor.b3log.org/0.1.8/index.min.js"></script>
<script src="https://vditor.b3log.org/0.2.0/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.
......@@ -19,7 +19,7 @@
* @fileoverview editor
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.2.0.2, Feb 15, 2019
* @version 1.2.0.3, Feb 18, 2019
*/
admin.editors = {}
......@@ -43,6 +43,9 @@ $.extend(SoloEditor.prototype, {
init: function () {
this.editor = new Vditor(this.conf.id, {
cache: true,
hint: {
emojiPath: latkeConfig.staticServePath + '/js/lib/emojify.js-1.1.0/images/basic'
},
preview: {
delay: 500,
show: this.conf.previewShow,
......
......@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.0.0.1, Feb 15, 2019
* @version 2.0.0.2, Feb 18, 2019
*/
var Page = function (tips) {
this.currentCommentId = ''
......@@ -105,11 +105,11 @@ $.extend(Page.prototype, {
if (typeof Vditor === 'undefined') {
$('head').
append(
$('<link rel=\'stylesheet\' href=\'https://vditor.b3log.org/0.1.8/index.classic.css\'>'))
$('<link rel=\'stylesheet\' href=\'https://vditor.b3log.org/0.2.0/index.classic.css\'>'))
$.ajax({
method: 'GET',
url: 'https://vditor.b3log.org/0.1.8/index.min.js',
url: 'https://vditor.b3log.org/0.2.0/index.min.js',
dataType: 'script',
cache: true,
async: false,
......@@ -117,6 +117,9 @@ $.extend(Page.prototype, {
window.vditor = new Vditor('soloEditorComment', {
placeholder: that.tips.commentContentCannotEmptyLabel,
height: 180,
hint: {
emojiPath: latkeConfig.staticServePath + '/js/lib/emojify.js-1.1.0/images/basic'
},
esc: function () {
$('#soloEditorCancel').click()
},
......@@ -334,7 +337,7 @@ $.extend(Page.prototype, {
type = 'page'
}
if (vditor.getValue().length > 2 && vditor.getValue().length < 500) {
if (vditor.getValue().length > 1 && vditor.getValue().length < 500) {
$('#soloEditorAdd').attr('disabled', 'disabled')
var requestJSONObject = {
'oId': tips.oId,
......
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