mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	
		
			
	
	
		
			45 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			45 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|  | /** | ||
|  |  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. | ||
|  |  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 | ||
|  |  */ | ||
|  | import { ClassicEditor as ClassicEditorBase } from '@ckeditor/ckeditor5-editor-classic'; | ||
|  | import { CKFinderUploadAdapter } from '@ckeditor/ckeditor5-adapter-ckfinder'; | ||
|  | import { Autoformat } from '@ckeditor/ckeditor5-autoformat'; | ||
|  | import { Bold, Italic } from '@ckeditor/ckeditor5-basic-styles'; | ||
|  | import { BlockQuote } from '@ckeditor/ckeditor5-block-quote'; | ||
|  | import { CKBox } from '@ckeditor/ckeditor5-ckbox'; | ||
|  | import { CKFinder } from '@ckeditor/ckeditor5-ckfinder'; | ||
|  | import { EasyImage } from '@ckeditor/ckeditor5-easy-image'; | ||
|  | import { Heading } from '@ckeditor/ckeditor5-heading'; | ||
|  | import { Image, ImageCaption, ImageStyle, ImageToolbar, ImageUpload, PictureEditing } from '@ckeditor/ckeditor5-image'; | ||
|  | import { Indent } from '@ckeditor/ckeditor5-indent'; | ||
|  | import { Link } from '@ckeditor/ckeditor5-link'; | ||
|  | import { List } from '@ckeditor/ckeditor5-list'; | ||
|  | import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed'; | ||
|  | import { Paragraph } from '@ckeditor/ckeditor5-paragraph'; | ||
|  | import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office'; | ||
|  | import { Table, TableToolbar } from '@ckeditor/ckeditor5-table'; | ||
|  | import { TextTransformation, Typing } from '@ckeditor/ckeditor5-typing'; | ||
|  | import { CloudServices } from '@ckeditor/ckeditor5-cloud-services'; | ||
|  | import { Enter, ShiftEnter } from '@ckeditor/ckeditor5-enter'; | ||
|  | import { SelectAll } from '@ckeditor/ckeditor5-select-all'; | ||
|  | import { Undo } from '@ckeditor/ckeditor5-undo'; | ||
|  | export default class ClassicEditor extends ClassicEditorBase { | ||
|  |     static builtinPlugins: (typeof TextTransformation | typeof Typing | typeof Enter | typeof ShiftEnter | typeof SelectAll | typeof Undo | typeof CKFinderUploadAdapter | typeof Paragraph | typeof Heading | typeof Autoformat | typeof Bold | typeof Italic | typeof BlockQuote | typeof Image | typeof ImageCaption | typeof ImageStyle | typeof ImageToolbar | typeof ImageUpload | typeof CloudServices | typeof CKBox | typeof CKFinder | typeof EasyImage | typeof List | typeof Indent | typeof Link | typeof MediaEmbed | typeof PasteFromOffice | typeof Table | typeof TableToolbar | typeof PictureEditing | { | ||
|  |         new (): Clipboard; | ||
|  |         prototype: Clipboard; | ||
|  |     })[]; | ||
|  |     static defaultConfig: { | ||
|  |         toolbar: { | ||
|  |             items: string[]; | ||
|  |         }; | ||
|  |         image: { | ||
|  |             toolbar: string[]; | ||
|  |         }; | ||
|  |         table: { | ||
|  |             contentToolbar: string[]; | ||
|  |         }; | ||
|  |         language: string; | ||
|  |     }; | ||
|  | } |