| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @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
 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2024-11-09 09:43:30 +02:00
										 |  |  | import { DecoupledEditor as DecoupledEditorBase } from '@ckeditor/ckeditor5-editor-decoupled'; | 
					
						
							|  |  |  | import { Essentials } from '@ckeditor/ckeditor5-essentials'; | 
					
						
							|  |  |  | import { Alignment } from '@ckeditor/ckeditor5-alignment'; | 
					
						
							|  |  |  | import { FontSize, FontFamily, FontColor, FontBackgroundColor } from '@ckeditor/ckeditor5-font'; | 
					
						
							| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  | import { CKFinderUploadAdapter } from '@ckeditor/ckeditor5-adapter-ckfinder'; | 
					
						
							|  |  |  | import { Autoformat } from '@ckeditor/ckeditor5-autoformat'; | 
					
						
							| 
									
										
										
										
											2024-11-09 09:43:30 +02:00
										 |  |  | import { Bold, Italic, Strikethrough, Underline } from '@ckeditor/ckeditor5-basic-styles'; | 
					
						
							| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  | 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'; | 
					
						
							| 
									
										
										
										
											2024-11-09 09:43:30 +02:00
										 |  |  | import { Image, ImageCaption, ImageResize, ImageStyle, ImageToolbar, ImageUpload, PictureEditing } from '@ckeditor/ckeditor5-image'; | 
					
						
							|  |  |  | import { Indent, IndentBlock } from '@ckeditor/ckeditor5-indent'; | 
					
						
							| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  | import { Link } from '@ckeditor/ckeditor5-link'; | 
					
						
							| 
									
										
										
										
											2024-11-09 09:43:30 +02:00
										 |  |  | import { List, ListProperties } from '@ckeditor/ckeditor5-list'; | 
					
						
							| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  | 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'; | 
					
						
							| 
									
										
										
										
											2024-11-09 09:43:30 +02:00
										 |  |  | import { TextTransformation } from '@ckeditor/ckeditor5-typing'; | 
					
						
							| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  | import { CloudServices } from '@ckeditor/ckeditor5-cloud-services'; | 
					
						
							| 
									
										
										
										
											2024-11-09 09:43:30 +02:00
										 |  |  | export default class DecoupledEditor extends DecoupledEditorBase { | 
					
						
							|  |  |  |     static builtinPlugins: (typeof TextTransformation | typeof Essentials | typeof Alignment | typeof FontBackgroundColor | typeof FontColor | typeof FontFamily | typeof FontSize | typeof CKFinderUploadAdapter | typeof Paragraph | typeof Heading | typeof Autoformat | typeof Bold | typeof Italic | typeof Strikethrough | typeof Underline | typeof BlockQuote | typeof Image | typeof ImageCaption | typeof ImageResize | typeof ImageStyle | typeof ImageToolbar | typeof ImageUpload | typeof CloudServices | typeof CKBox | typeof CKFinder | typeof EasyImage | typeof List | typeof ListProperties | typeof Indent | typeof IndentBlock | typeof Link | typeof MediaEmbed | typeof PasteFromOffice | typeof Table | typeof TableToolbar | typeof PictureEditing)[]; | 
					
						
							| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  |     static defaultConfig: { | 
					
						
							|  |  |  |         toolbar: { | 
					
						
							|  |  |  |             items: string[]; | 
					
						
							|  |  |  |         }; | 
					
						
							|  |  |  |         image: { | 
					
						
							| 
									
										
										
										
											2024-11-09 09:43:30 +02:00
										 |  |  |             resizeUnit: "px"; | 
					
						
							| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  |             toolbar: string[]; | 
					
						
							|  |  |  |         }; | 
					
						
							|  |  |  |         table: { | 
					
						
							|  |  |  |             contentToolbar: string[]; | 
					
						
							|  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2024-11-09 09:43:30 +02:00
										 |  |  |         list: { | 
					
						
							|  |  |  |             properties: { | 
					
						
							|  |  |  |                 styles: boolean; | 
					
						
							|  |  |  |                 startIndex: boolean; | 
					
						
							|  |  |  |                 reversed: boolean; | 
					
						
							|  |  |  |             }; | 
					
						
							|  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2024-11-09 00:15:19 +02:00
										 |  |  |         language: string; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  | } |