Skip to content

Commit

Permalink
feat: 桌面端添加切换编辑模式
Browse files Browse the repository at this point in the history
  • Loading branch information
am-abudu committed Jan 2, 2022
1 parent 49ce87d commit 5994681
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions templates/home/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ <h6 class="h2 text-white d-inline-block mb-0">正在编辑: {{ filename }}</h6>
"export",
"|",
"fullscreen",
"edit-mode",
"preview"
];
//挂载到全局
Expand All @@ -238,7 +239,7 @@ <h6 class="h2 text-white d-inline-block mb-0">正在编辑: {{ filename }}</h6>
},
"preview": {
"theme": {
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme/light.css"
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme"
}
},
toolbar: [
Expand Down Expand Up @@ -432,7 +433,7 @@ <h6 class="h2 text-white d-inline-block mb-0">正在编辑: {{ filename }}</h6>
"preview": {
"mode": "both",
"theme": {
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme/light.css"
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme"
}
},
hint: {
Expand Down
5 changes: 3 additions & 2 deletions templates/home/edit_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ <h6 class="h2 text-white d-inline-block mb-0">正在编辑: {{ filename }}</h6>
"export",
"|",
"fullscreen",
"edit-mode",
"preview"
];
//挂载到全局
Expand All @@ -204,7 +205,7 @@ <h6 class="h2 text-white d-inline-block mb-0">正在编辑: {{ filename }}</h6>
},
"preview": {
"theme": {
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme/light.css"
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme"
}
},
"debugger": false,
Expand Down Expand Up @@ -402,7 +403,7 @@ <h6 class="h2 text-white d-inline-block mb-0">正在编辑: {{ filename }}</h6>
"preview": {
"mode": "both",
"theme": {
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme/light.css"
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme"
}
}, hint: {
emoji: {
Expand Down
5 changes: 3 additions & 2 deletions templates/home/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h6 class="h2 text-white d-inline-block mb-0">新建文章:&nbsp;&nbsp;</h6>
"enable": false,
}, "preview": {
"theme": {
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme/light.css"
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme"
}
},
toolbar: [
Expand Down Expand Up @@ -440,6 +440,7 @@ <h6 class="h2 text-white d-inline-block mb-0">新建文章:&nbsp;&nbsp;</h6>
"export",
"|",
"fullscreen",
"edit-mode",
"preview"
],
"cdn": "{{ cdn_prev }}vditor@3.8.8",
Expand All @@ -455,7 +456,7 @@ <h6 class="h2 text-white d-inline-block mb-0">新建文章:&nbsp;&nbsp;</h6>
"preview": {
"mode": "both",
"theme": {
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme/light.css"
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme"
}
}, hint: {
emoji: {
Expand Down
5 changes: 3 additions & 2 deletions templates/home/new_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h6 class="h2 text-white d-inline-block mb-0">新建页面:&nbsp;&nbsp;</h6>
"enable": false,
}, "preview": {
"theme": {
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme/light.css"
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme"
}
},
toolbar: [
Expand Down Expand Up @@ -402,6 +402,7 @@ <h6 class="h2 text-white d-inline-block mb-0">新建页面:&nbsp;&nbsp;</h6>
"export",
"|",
"fullscreen",
"edit-mode",
"preview"
],
"cdn": "{{ cdn_prev }}vditor@3.8.8",
Expand All @@ -417,7 +418,7 @@ <h6 class="h2 text-white d-inline-block mb-0">新建页面:&nbsp;&nbsp;</h6>
"preview": {
"mode": "both",
"theme": {
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme/light.css"
"path": "{{ cdn_prev }}vditor@3.8.8/dist/css/content-theme"
}
}, hint: {
emoji: {
Expand Down

0 comments on commit 5994681

Please sign in to comment.