Commit 4844d0ac authored by Van's avatar Van

vditor -> 0.1.8

parent b83abb3e
......@@ -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.7/index.classic.css" />
<link type="text/css" rel="stylesheet" href="https://vditor.b3log.org/0.1.8/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.7/index.min.js"></script>
<script src="https://vditor.b3log.org/0.1.8/index.min.js"></script>
<script src="${staticServePath}/js/common${miniPostfix}.js"></script>
<#if "" == miniPostfix>
<script src="${staticServePath}/js/admin/admin.js"></script>
......
......@@ -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 1.6.0.2, Feb 10, 2019
* @version 1.6.0.3, Feb 15, 2019
*/
admin.article = {
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
......@@ -441,13 +441,15 @@ admin.article = {
id: 'articleContent',
height: 500,
fun: fun,
previewShow: true
previewShow: true,
resize: false
})
admin.editors.abstractEditor = new SoloEditor({
id: 'abstract',
height: 200,
previewShow: false
previewShow: false,
resize: true
})
admin.article.clearDraftTimer()
......
......@@ -19,7 +19,7 @@
* @fileoverview editor
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.2.0.1, Feb 10, 2019
* @version 1.2.0.2, Feb 15, 2019
*/
admin.editors = {}
......@@ -63,11 +63,14 @@ $.extend(SoloEditor.prototype, {
max: 10 * 1024 * 1024,
url: Label.uploadURL,
token: Label.uploadToken,
filename: function (name) {
return name.replace(/\?|\\|\/|:|\||<|>|\*|\[|\]|\s+/g, '-')
}
},
height: this.conf.height,
counter: 102400,
resize: {
enable: false,
enable: this.conf.resize,
},
lang: Label.localeString,
classes: {
......
......@@ -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.0, Feb 10, 2019
* @version 2.0.0.1, Feb 15, 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.7/index.classic.css\'>'))
$('<link rel=\'stylesheet\' href=\'https://vditor.b3log.org/0.1.8/index.classic.css\'>'))
$.ajax({
method: 'GET',
url: 'https://vditor.b3log.org/0.1.7/index.min.js',
url: 'https://vditor.b3log.org/0.1.8/index.min.js',
dataType: 'script',
cache: true,
async: false,
......
Subproject commit e355717ad74f088860097fda88aea18b4a3ff4e4
Subproject commit cd12e591de84c8320b1e22a07338f16134cf578a
......@@ -34,8 +34,7 @@
<br>
<label class="github__text">
<input type="checkbox" checked id="isAgreenCheck">
是否愿意在 GitHub 上收藏该项目、关注<a href="https://github.com/88250" target="_blank">开发者</a>并加入
<a href="https://github.com/b3log" target="_blank">B3log</a> 开源组织
是否愿意在 GitHub 上收藏该<a href="https://github.com/b3log/solo" target="_blank">项目</a>并关注<a href="https://github.com/88250" target="_blank">开发者</a>
</label>
<br>
<button class="startAction">${useGitHubAccountLoginLabel}</button><br>
......
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