Commit 31b5d4d4 authored by Liyuan Li's avatar Liyuan Li

vditor

parent 6bbc0199
...@@ -8690,9 +8690,9 @@ ...@@ -8690,9 +8690,9 @@
} }
}, },
"vditor": { "vditor": {
"version": "3.2.4", "version": "3.2.6",
"resolved": "https://registry.npmjs.org/vditor/-/vditor-3.2.4.tgz", "resolved": "https://registry.npmjs.org/vditor/-/vditor-3.2.6.tgz",
"integrity": "sha512-XH5nOJ+F4fjCLKSATO436JidiN+eEipV3irWaKDQnU3xPdaFVQij+81YOnOfya5n8vzwbFk+OwYTPq0FWkiWQA==", "integrity": "sha512-PJjPe+DzCj8ZCZL7TAtXRsyNWg1Jkbvfsh9ZhAL0Yef25Uh1vUE9RJkcTUtClUfwtpOpgrfIVO61cdFPS1fSHA==",
"requires": { "requires": {
"diff-match-patch": "^1.0.4" "diff-match-patch": "^1.0.4"
} }
......
...@@ -55,6 +55,6 @@ ...@@ -55,6 +55,6 @@
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"uvstat": "^1.0.7", "uvstat": "^1.0.7",
"vcmt": "^1.2.1", "vcmt": "^1.2.1",
"vditor": "^3.2.4" "vditor": "^3.2.6"
} }
} }
This diff is collapsed.
...@@ -416,6 +416,7 @@ admin.article = { ...@@ -416,6 +416,7 @@ admin.article = {
// editor // editor
admin.editors.articleEditor = new SoloEditor({ admin.editors.articleEditor = new SoloEditor({
outline: true,
id: 'articleContent', id: 'articleContent',
height: 500, height: 500,
fun: fun, fun: fun,
......
...@@ -57,6 +57,7 @@ $.extend(SoloEditor.prototype, { ...@@ -57,6 +57,7 @@ $.extend(SoloEditor.prototype, {
}) })
const options = { const options = {
outline: this.conf.outline || false,
mode: Label.editorMode, mode: Label.editorMode,
typewriterMode: this.conf.typewriterMode, typewriterMode: this.conf.typewriterMode,
cache: { cache: {
...@@ -105,6 +106,51 @@ $.extend(SoloEditor.prototype, { ...@@ -105,6 +106,51 @@ $.extend(SoloEditor.prototype, {
toolbarConfig: { toolbarConfig: {
pin: true, pin: true,
}, },
toolbar:[
"emoji",
"headings",
"bold",
"link",
"|",
"list",
"ordered-list",
"check",
"outdent",
"indent",
"|",
"quote",
"code",
"insert-before",
"insert-after",
"|",
"upload",
"record",
"table",
"|",
"undo",
"redo",
"|",
"fullscreen",
"edit-mode",
{
name: "more",
toolbar: [
"italic",
"strike",
"line",
"inline-code",
"both",
"code-theme",
"content-theme",
"export",
"outline",
"preview",
"format",
"devtools",
"info",
"help",
],
}],
after: () => { after: () => {
if (typeof this.conf.fun === 'function') { if (typeof this.conf.fun === 'function') {
this.conf.fun() this.conf.fun()
......
...@@ -306,7 +306,7 @@ window.Util = { ...@@ -306,7 +306,7 @@ window.Util = {
loadVditor: function (cb) { loadVditor: function (cb) {
$.ajax({ $.ajax({
method: 'GET', method: 'GET',
url: 'https://cdn.jsdelivr.net/npm/vditor@3.2.4/dist/index.min.js', url: 'https://cdn.jsdelivr.net/npm/vditor@3.2.6/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.
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