Commit 19088daf authored by Liyuan Li's avatar Liyuan Li

vditor

parent e57cd2cf
......@@ -8676,17 +8676,17 @@
}
},
"vcmt": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/vcmt/-/vcmt-1.1.5.tgz",
"integrity": "sha512-1+lCCu7kd7QjFRvzXUJISnc6yD3kVNGn1T+l9hpzDJmGe/+z/K1dpbjR7LWhg3YlDC2YrJi7Aad7VXtzGbxg3Q==",
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/vcmt/-/vcmt-1.1.6.tgz",
"integrity": "sha512-gWD+HZDuFrx7YFVtBBAVqGGh68HrjrV/qQaUOiXfmR1yTO6yeoyQPoAm1vnS4ux8fDDXdu8++yIOFQG9DLAQYA==",
"requires": {
"jquery": "^3.4.1"
}
},
"vditor": {
"version": "3.1.10",
"resolved": "https://registry.npmjs.org/vditor/-/vditor-3.1.10.tgz",
"integrity": "sha512-WKkowreJoBVE+8NV2h7ZYMVUfXyui8PpOBr9Eike/HSoRQLLkTkFV1LP4rC8JH4oH05eqXqRBhcgrzMMe9ZGaQ==",
"version": "3.1.11",
"resolved": "https://registry.npmjs.org/vditor/-/vditor-3.1.11.tgz",
"integrity": "sha512-+RBgMhB+zJcOOVYbKrIRJIoHEw5FgPLYeDqyq3+KsTsyvXoDgi5os375a4+taqowBihYE/vNdAH1vpurWVaQHw==",
"requires": {
"diff-match-patch": "^1.0.4"
}
......
......@@ -54,7 +54,7 @@
"jquery": "^3.4.1",
"nprogress": "^0.2.0",
"uvstat": "^1.0.7",
"vcmt": "^1.1.5",
"vditor": "^3.1.10"
"vcmt": "^1.1.6",
"vditor": "^3.1.11"
}
}
This diff is collapsed.
......@@ -14,7 +14,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.5.1.0, Apr 13, 2020
* @version 1.6.0.0, Apr 16, 2020
*/
admin.editors = {}
......@@ -114,9 +114,9 @@ $.extend(SoloEditor.prototype, {
if ($(window).width() < 768) {
options.toolbar = [
'emoji',
'bold',
'link',
'list',
'upload',
'insert-after',
'edit-mode',
'preview',
'fullscreen',
......
......@@ -301,7 +301,7 @@ window.Util = {
loadVditor: function (cb) {
$.ajax({
method: 'GET',
url: 'https://cdn.jsdelivr.net/npm/vditor@3.1.10/dist/index.min.js',
url: 'https://cdn.jsdelivr.net/npm/vditor@3.1.11/dist/index.min.js',
dataType: 'script',
cache: true,
success: () => {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -14,7 +14,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.7.0.0, Apr 12, 2020
* @version 2.8.0.0, Apr 16, 2020
*/
window.Page = function (tips) {
this.currentCommentId = ''
......@@ -151,6 +151,8 @@ $.extend(Page.prototype, {
'code',
'inline-code',
'table',
'insert-before',
'insert-after',
'|',
'undo',
'redo',
......@@ -161,15 +163,16 @@ $.extend(Page.prototype, {
'format',
'|',
'fullscreen',
'devtools',
'info',
'help',
], resizeEnable = true
if ($(window).width() < 768) {
toolbar = [
'emoji',
'bold',
'link',
'list',
'upload',
'insert-after',
'edit-mode',
'preview',
'fullscreen',
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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