mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-17 12:01:41 +08:00
fix(ck-mermaid): lazy loading if mermaid is not loaded
This commit is contained in:
parent
1de6c7d5b2
commit
5d5a490312
22
libraries/ckeditor/ckeditor.js
vendored
22
libraries/ckeditor/ckeditor.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -175,7 +175,8 @@ const editorConfig = {
|
||||
'AutoformatMath',
|
||||
'indentBlockShortcutPlugin',
|
||||
'removeFormatLinksPlugin',
|
||||
'Footnotes'
|
||||
'Footnotes',
|
||||
'Mermaid'
|
||||
],
|
||||
toolbar: {
|
||||
items: []
|
||||
|
@ -257,6 +257,9 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||
lazyLoad: async () => await libraryLoader.requireLibrary(libraryLoader.KATEX),
|
||||
forceOutputType: false, // forces output to use outputType
|
||||
enablePreview: true // Enable preview view
|
||||
},
|
||||
mermaid: {
|
||||
lazyLoad: async () => await libraryLoader.requireLibrary(libraryLoader.MERMAID)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user