Skip to content

Commit

Permalink
fix: editor not shown after update vitepress
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Dec 23, 2022
1 parent f391a10 commit f0cfed7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/content/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ import '@vueup/vue-quill/dist/vue-quill.bubble.css' // for bubble theme
import '@vueup/vue-quill/dist/vue-quill.snow.css' // for snow theme

export default {
enhanceApp({ app, router, siteData }) {
// app is the Vue 3 app instance from `createApp()`. router is VitePress'
// custom router. `siteData`` is a `ref`` of current site-level metadata.
app.component('QuillEditor', QuillEditor)
},
...Theme,
Layout() {
return h(Theme.Layout, null, {
'home-features-after': () => h(HomeDemo),
// 'aside-ads-before': () => h(AsideSponsors)
})
},
enhanceApp({ app, router, siteData }) {
// app is the Vue 3 app instance from `createApp()`. router is VitePress'
// custom router. `siteData`` is a `ref`` of current site-level metadata.
app.component('QuillEditor', QuillEditor)
},
}

0 comments on commit f0cfed7

Please sign in to comment.