mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	refactor(editor): move classic toolbar config into Trilium repo
This commit is contained in:
		
							parent
							
								
									b6463bb03a
								
							
						
					
					
						commit
						7fbe4c10a5
					
				@ -15,62 +15,6 @@ export default class DecoupledEditor extends DecoupledEditorBase {
 | 
			
		||||
	];
 | 
			
		||||
 | 
			
		||||
	public static override defaultConfig = {
 | 
			
		||||
		...COMMON_SETTINGS,
 | 
			
		||||
 | 
			
		||||
		// For nested toolbars, refer to https://ckeditor.com/docs/ckeditor5/latest/getting-started/setup/toolbar.html#grouping-toolbar-items-in-dropdowns-nested-toolbars.
 | 
			
		||||
		toolbar: {
 | 
			
		||||
			items: [
 | 
			
		||||
				'heading',
 | 
			
		||||
				'fontSize',
 | 
			
		||||
				'|',
 | 
			
		||||
				'bold',
 | 
			
		||||
				'italic',
 | 
			
		||||
				{
 | 
			
		||||
					label: "Text formatting",
 | 
			
		||||
					icon: "text",
 | 
			
		||||
					items: [
 | 
			
		||||
						'underline',
 | 
			
		||||
						'strikethrough',
 | 
			
		||||
						'superscript',
 | 
			
		||||
						'subscript',
 | 
			
		||||
						'code',
 | 
			
		||||
					],
 | 
			
		||||
				},
 | 
			
		||||
				'|',
 | 
			
		||||
				'fontColor',
 | 
			
		||||
				'fontBackgroundColor',
 | 
			
		||||
				'removeFormat',
 | 
			
		||||
				'|',
 | 
			
		||||
				'bulletedList', 'numberedList', 'todoList',
 | 
			
		||||
				'|',
 | 
			
		||||
				'blockQuote',
 | 
			
		||||
				'insertTable',
 | 
			
		||||
				'codeBlock',
 | 
			
		||||
				'footnote',
 | 
			
		||||
				{
 | 
			
		||||
					label: "Insert",
 | 
			
		||||
					icon: "plus",
 | 
			
		||||
					items: [
 | 
			
		||||
						'imageUpload',
 | 
			
		||||
						'|',
 | 
			
		||||
						'link',
 | 
			
		||||
						'internallink',
 | 
			
		||||
						'includeNote',
 | 
			
		||||
						'|',
 | 
			
		||||
						'specialCharacters',
 | 
			
		||||
						'math',
 | 
			
		||||
						'mermaid',
 | 
			
		||||
						'horizontalLine',
 | 
			
		||||
						'pageBreak'
 | 
			
		||||
					]
 | 
			
		||||
				},
 | 
			
		||||
				'|',
 | 
			
		||||
				'outdent', 'indent',
 | 
			
		||||
				'|',
 | 
			
		||||
				'markdownImport',
 | 
			
		||||
				'cuttonote',
 | 
			
		||||
				'findAndReplace'
 | 
			
		||||
			]
 | 
			
		||||
		}
 | 
			
		||||
		...COMMON_SETTINGS
 | 
			
		||||
	};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user