Skip to content

Commit

Permalink
vditor编辑器指定版本,防止引用最新版本造成的不稳定。
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbbbbbbbbba committed Feb 23, 2020
1 parent 5705472 commit 67675df
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions site/components/MarkdownEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
vditor: null,
width: '100%',
toolbar: [
'emoji',
// 'emoji',
'headings',
'bold',
'italic',
Expand Down Expand Up @@ -85,11 +85,15 @@ export default {
counter: '999999',
delay: 500,
mode: 'markdown-show',
theme: 'classic',
customEmoji: {
'1': '😝'
},
preview: {
mode: 'editor',
hljs: {
enable: true,
style: 'GitHub',
style: 'github',
lineNumber: true
}
},
Expand Down Expand Up @@ -138,22 +142,17 @@ export default {
link: [
{
rel: 'stylesheet',
href: '//cdn.jsdelivr.net/npm/vditor/dist/index.classic.css'
href: '//cdn.jsdelivr.net/npm/vditor@2.2.0/dist/index.css'
}
],
script: [
{
src: '//cdn.jsdelivr.net/npm/vditor/dist/index.min.js'
src: '//cdn.jsdelivr.net/npm/vditor@2.2.0/dist/index.min.js'
}
]
}
}
}
</script>

<style lang="scss" scoped>
.vditor {
border: 1px solid #d1d5da;
width: 100%;
}
</style>
<style lang="scss" scoped></style>

0 comments on commit 67675df

Please sign in to comment.