mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01: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',
 | 
										'includeNote',
 | 
				
			||||||
					'|',
 | 
										'|',
 | 
				
			||||||
					'math',
 | 
										'math',
 | 
				
			||||||
 | 
										'mermaid',
 | 
				
			||||||
					'horizontalLine',
 | 
										'horizontalLine',
 | 
				
			||||||
					'pageBreak'
 | 
										'pageBreak'
 | 
				
			||||||
				]
 | 
									]
 | 
				
			||||||
 | 
				
			|||||||
@ -59,6 +59,7 @@ export default class DecoupledEditor extends DecoupledEditorBase {
 | 
				
			|||||||
						'|',
 | 
											'|',
 | 
				
			||||||
						'specialCharacters',
 | 
											'specialCharacters',
 | 
				
			||||||
						'math',
 | 
											'math',
 | 
				
			||||||
 | 
											'mermaid',
 | 
				
			||||||
						'horizontalLine',
 | 
											'horizontalLine',
 | 
				
			||||||
						'pageBreak'
 | 
											'pageBreak'
 | 
				
			||||||
					]
 | 
										]
 | 
				
			||||||
 | 
				
			|||||||
@ -54,6 +54,7 @@ import { SpecialCharacters, SpecialCharactersEssentials } from '@ckeditor/ckedit
 | 
				
			|||||||
import { GeneralHtmlSupport } from "@ckeditor/ckeditor5-html-support";
 | 
					import { GeneralHtmlSupport } from "@ckeditor/ckeditor5-html-support";
 | 
				
			||||||
import Uploadfileplugin from "../../ckeditor5-file-upload/uploadfileplugin";
 | 
					import Uploadfileplugin from "../../ckeditor5-file-upload/uploadfileplugin";
 | 
				
			||||||
import { PageBreak } from '@ckeditor/ckeditor5-page-break';
 | 
					import { PageBreak } from '@ckeditor/ckeditor5-page-break';
 | 
				
			||||||
 | 
					import { Mermaid } from "../../ckeditor5-mermaid/src/index";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import MentionCustomization from './mention_customization';
 | 
					import MentionCustomization from './mention_customization';
 | 
				
			||||||
import UploadimagePlugin from './uploadimage';
 | 
					import UploadimagePlugin from './uploadimage';
 | 
				
			||||||
@ -143,7 +144,8 @@ export const COMMON_PLUGINS = [
 | 
				
			|||||||
	// External plugins
 | 
						// External plugins
 | 
				
			||||||
	Math,
 | 
						Math,
 | 
				
			||||||
	AutoformatMath,
 | 
						AutoformatMath,
 | 
				
			||||||
	Footnotes
 | 
						Footnotes,
 | 
				
			||||||
 | 
						Mermaid
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const COMMON_SETTINGS = {
 | 
					export const COMMON_SETTINGS = {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user