ckeditor.d.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @license Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. import { ClassicEditor } from '@ckeditor/ckeditor5-editor-classic';
  6. import { Alignment } from '@ckeditor/ckeditor5-alignment';
  7. import { Autoformat } from '@ckeditor/ckeditor5-autoformat';
  8. import { Bold, Italic } from '@ckeditor/ckeditor5-basic-styles';
  9. import { BlockQuote } from '@ckeditor/ckeditor5-block-quote';
  10. import { Essentials } from '@ckeditor/ckeditor5-essentials';
  11. import { FontBackgroundColor, FontColor, FontFamily, FontSize } from '@ckeditor/ckeditor5-font';
  12. import { Heading } from '@ckeditor/ckeditor5-heading';
  13. import { HorizontalLine } from '@ckeditor/ckeditor5-horizontal-line';
  14. import { Image, ImageCaption, ImageResize, ImageStyle, ImageToolbar } from '@ckeditor/ckeditor5-image';
  15. import { Indent, IndentBlock } from '@ckeditor/ckeditor5-indent';
  16. import { Link } from '@ckeditor/ckeditor5-link';
  17. import { List, ListProperties } from '@ckeditor/ckeditor5-list';
  18. import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed';
  19. import { Paragraph } from '@ckeditor/ckeditor5-paragraph';
  20. import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office';
  21. import { SelectAll } from '@ckeditor/ckeditor5-select-all';
  22. import { SpecialCharacters } from '@ckeditor/ckeditor5-special-characters';
  23. import { Table, TableToolbar } from '@ckeditor/ckeditor5-table';
  24. import { TextTransformation } from '@ckeditor/ckeditor5-typing';
  25. import MyCustomPlugin from './customPluugs';
  26. declare class Editor extends ClassicEditor {
  27. static builtinPlugins: (typeof Alignment | typeof Autoformat | typeof BlockQuote | typeof Bold | typeof Essentials | typeof FontBackgroundColor | typeof FontColor | typeof FontFamily | typeof FontSize | typeof Heading | typeof HorizontalLine | typeof Image | typeof ImageCaption | typeof ImageResize | typeof ImageStyle | typeof ImageToolbar | typeof Indent | typeof IndentBlock | typeof Italic | typeof Link | typeof List | typeof ListProperties | typeof MediaEmbed | typeof Paragraph | typeof PasteFromOffice | typeof SelectAll | typeof SpecialCharacters | typeof Table | typeof TableToolbar | typeof TextTransformation)[];
  28. static defaultConfig: {
  29. toolbar: {
  30. items: string[];
  31. };
  32. language: string;
  33. image: {
  34. toolbar: string[];
  35. };
  36. table: {
  37. contentToolbar: string[];
  38. };
  39. extraPlugins: (typeof MyCustomPlugin)[];
  40. };
  41. }
  42. export default Editor;