Skip to content

Commit

Permalink
docs: fix markdown docs (opentiny#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol authored Sep 2, 2024
1 parent beb90f7 commit 7c0b851
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/docs/fluent-editor/demos/markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ onMounted(() => {
import('@opentiny/fluent-editor').then((module) => {
const FluentEditor = module.default
FluentEditor.register('modules/markdownShortcuts', MarkdownShortcuts)
import('quill-markdown-shortcuts').then(markdown => {
const MarkdownShortcuts = markdown.default
editor = new FluentEditor('#editor', {
theme: 'snow',
modules: {
markdownShortcuts: true,
},
FluentEditor.register('modules/markdownShortcuts', MarkdownShortcuts)
editor = new FluentEditor('#editor', {
theme: 'snow',
modules: {
markdownShortcuts: true,
},
})
})
})
})
Expand Down

0 comments on commit 7c0b851

Please sign in to comment.