Commit 2e64fbfb authored by Liyuan Li's avatar Liyuan Li

vditor

parent bdb71a3a
...@@ -1298,6 +1298,12 @@ ...@@ -1298,6 +1298,12 @@
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
"dev": true "dev": true
}, },
"acorn": {
"version": "6.4.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz",
"integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==",
"dev": true
},
"aggregate-error": { "aggregate-error": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npm.taobao.org/aggregate-error/download/aggregate-error-3.0.1.tgz", "resolved": "https://registry.npm.taobao.org/aggregate-error/download/aggregate-error-3.0.1.tgz",
...@@ -3133,8 +3139,8 @@ ...@@ -3133,8 +3139,8 @@
}, },
"diff-match-patch": { "diff-match-patch": {
"version": "1.0.4", "version": "1.0.4",
"resolved": "https://registry.npm.taobao.org/diff-match-patch/download/diff-match-patch-1.0.4.tgz", "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.4.tgz",
"integrity": "sha1-asS1UjdGN2HE2vDcYD64aRJHRLE=" "integrity": "sha512-Uv3SW8bmH9nAtHKaKSanOQmj2DnlH65fUpcrMdfdaOxUG02QQ4YGZ8AE7kKOMisF7UqvOlGKVYWRvezdncW9lg=="
}, },
"diffie-hellman": { "diffie-hellman": {
"version": "5.0.3", "version": "5.0.3",
...@@ -5315,9 +5321,9 @@ ...@@ -5315,9 +5321,9 @@
} }
}, },
"kind-of": { "kind-of": {
"version": "6.0.2", "version": "6.0.3",
"resolved": "https://registry.npm.taobao.org/kind-of/download/kind-of-6.0.2.tgz", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
"integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
"dev": true "dev": true
}, },
"last-call-webpack-plugin": { "last-call-webpack-plugin": {
...@@ -5602,9 +5608,9 @@ ...@@ -5602,9 +5608,9 @@
} }
}, },
"minimist": { "minimist": {
"version": "1.2.0", "version": "1.2.5",
"resolved": "https://registry.npm.taobao.org/minimist/download/minimist-1.2.0.tgz", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
"dev": true "dev": true
}, },
"minipass": { "minipass": {
...@@ -8666,9 +8672,9 @@ ...@@ -8666,9 +8672,9 @@
} }
}, },
"vditor": { "vditor": {
"version": "2.2.19", "version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/vditor/download/vditor-2.2.19.tgz", "resolved": "https://registry.npmjs.org/vditor/-/vditor-3.0.0.tgz",
"integrity": "sha1-4zEGN33HjuwOFUGbe2EVPstJX/8=", "integrity": "sha512-BymtwIZySlNtTYtKORYpf8S3TM0u0R5aPg5Z8EB5UysZhcsz25f4Vji6cr90qu0LUzCvTI+7c67tSmxjqTZktg==",
"requires": { "requires": {
"diff-match-patch": "^1.0.4" "diff-match-patch": "^1.0.4"
} }
...@@ -8738,12 +8744,6 @@ ...@@ -8738,12 +8744,6 @@
"webpack-sources": "^1.4.1" "webpack-sources": "^1.4.1"
}, },
"dependencies": { "dependencies": {
"acorn": {
"version": "6.4.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.0.tgz",
"integrity": "sha512-gac8OEcQ2Li1dxIEWGZzsp2BitJxwkwcOm0zHAJLcPJaVvm58FRnk6RkuLRpU1EujipU2ZFODv2P9DLMfnV8mw==",
"dev": true
},
"braces": { "braces": {
"version": "2.3.2", "version": "2.3.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz",
...@@ -8907,6 +8907,14 @@ ...@@ -8907,6 +8907,14 @@
"regex-not": "^1.0.0", "regex-not": "^1.0.0",
"snapdragon": "^0.8.1", "snapdragon": "^0.8.1",
"to-regex": "^3.0.2" "to-regex": "^3.0.2"
},
"dependencies": {
"kind-of": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
"dev": true
}
} }
}, },
"p-locate": { "p-locate": {
......
...@@ -49,6 +49,6 @@ ...@@ -49,6 +49,6 @@
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"uvstat": "^1.0.7", "uvstat": "^1.0.7",
"vcmt": "^1.1.2", "vcmt": "^1.1.2",
"vditor": "^2.2.19" "vditor": "^3.0.0"
} }
} }
This diff is collapsed.
...@@ -110,7 +110,7 @@ $.extend(SoloEditor.prototype, { ...@@ -110,7 +110,7 @@ $.extend(SoloEditor.prototype, {
'list', 'list',
'check', 'check',
'upload', 'upload',
'wysiwyg', 'edit-mode',
'preview', 'preview',
'fullscreen', 'fullscreen',
'help', 'help',
......
...@@ -305,7 +305,7 @@ window.Util = { ...@@ -305,7 +305,7 @@ window.Util = {
loadVditor: function (cb) { loadVditor: function (cb) {
$.ajax({ $.ajax({
method: 'GET', method: 'GET',
url: 'https://cdn.jsdelivr.net/npm/vditor@2.2.19/dist/index.min.js', url: 'https://cdn.jsdelivr.net/npm/vditor@3.0.0/dist/index.min.js',
dataType: 'script', dataType: 'script',
cache: true, cache: true,
success: () => { success: () => {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -160,7 +160,7 @@ $.extend(Page.prototype, { ...@@ -160,7 +160,7 @@ $.extend(Page.prototype, {
'undo', 'undo',
'redo', 'redo',
'|', '|',
'wysiwyg', 'edit-mode',
'both', 'both',
'preview', 'preview',
'format', 'format',
...@@ -178,7 +178,7 @@ $.extend(Page.prototype, { ...@@ -178,7 +178,7 @@ $.extend(Page.prototype, {
'link', 'link',
'list', 'list',
'check', 'check',
'wysiwyg', 'edit-mode',
'preview', 'preview',
'fullscreen', 'fullscreen',
'help', 'help',
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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