Commit 2cc48d2b authored by Van's avatar Van

vditor -> 0.4.0

parent 1f2844c0
This diff is collapsed.
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* @fileoverview editor * @fileoverview editor
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.2.0.3, Feb 18, 2019 * @version 1.2.0.4, Mar 6, 2019
*/ */
admin.editors = {} admin.editors = {}
...@@ -43,6 +43,7 @@ $.extend(SoloEditor.prototype, { ...@@ -43,6 +43,7 @@ $.extend(SoloEditor.prototype, {
init: function () { init: function () {
this.editor = new Vditor(this.conf.id, { this.editor = new Vditor(this.conf.id, {
cache: true, cache: true,
tab: '\t',
hint: { hint: {
emojiPath: latkeConfig.staticServePath + '/js/lib/emojify.js-1.1.0/images/basic' emojiPath: latkeConfig.staticServePath + '/js/lib/emojify.js-1.1.0/images/basic'
}, },
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.1.0.0, Feb 21, 2019 * @version 2.1.0.1, Mar 6, 2019
*/ */
var Page = function (tips) { var Page = function (tips) {
this.currentCommentId = '' this.currentCommentId = ''
...@@ -113,6 +113,7 @@ $.extend(Page.prototype, { ...@@ -113,6 +113,7 @@ $.extend(Page.prototype, {
window.vditor = new Vditor('soloEditorComment', { window.vditor = new Vditor('soloEditorComment', {
placeholder: that.tips.commentContentCannotEmptyLabel, placeholder: that.tips.commentContentCannotEmptyLabel,
height: 180, height: 180,
tab: '\t',
hint: { hint: {
emojiPath: latkeConfig.staticServePath + '/js/lib/emojify.js-1.1.0/images/basic' emojiPath: latkeConfig.staticServePath + '/js/lib/emojify.js-1.1.0/images/basic'
}, },
......
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