mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
feat(editor): enable mermaid
This commit is contained in:
parent
6795e6e411
commit
28b182b993
@ -53,6 +53,7 @@ export default class BalloonEditor extends BalloonEditorBase {
|
||||
'includeNote',
|
||||
'|',
|
||||
'math',
|
||||
'mermaid',
|
||||
'horizontalLine',
|
||||
'pageBreak'
|
||||
]
|
||||
|
@ -59,6 +59,7 @@ export default class DecoupledEditor extends DecoupledEditorBase {
|
||||
'|',
|
||||
'specialCharacters',
|
||||
'math',
|
||||
'mermaid',
|
||||
'horizontalLine',
|
||||
'pageBreak'
|
||||
]
|
||||
|
@ -54,6 +54,7 @@ import { SpecialCharacters, SpecialCharactersEssentials } from '@ckeditor/ckedit
|
||||
import { GeneralHtmlSupport } from "@ckeditor/ckeditor5-html-support";
|
||||
import Uploadfileplugin from "../../ckeditor5-file-upload/uploadfileplugin";
|
||||
import { PageBreak } from '@ckeditor/ckeditor5-page-break';
|
||||
import { Mermaid } from "../../ckeditor5-mermaid/src/index";
|
||||
|
||||
import MentionCustomization from './mention_customization';
|
||||
import UploadimagePlugin from './uploadimage';
|
||||
@ -143,7 +144,8 @@ export const COMMON_PLUGINS = [
|
||||
// External plugins
|
||||
Math,
|
||||
AutoformatMath,
|
||||
Footnotes
|
||||
Footnotes,
|
||||
Mermaid
|
||||
];
|
||||
|
||||
export const COMMON_SETTINGS = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user