/** * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ // The editor creator to use. import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'; import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat'; import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment'; import AutoImage from '@ckeditor/ckeditor5-image/src/autoimage'; import AutoLink from '@ckeditor/ckeditor5-link/src/autolink'; import Autosave from '@ckeditor/ckeditor5-autosave/src/autosave'; import BlockQuote from '@ckeditor/ckeditor5-block-quote/src/blockquote'; import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold'; import Code from '@ckeditor/ckeditor5-basic-styles/src/code'; import CodeBlock from '@ckeditor/ckeditor5-code-block/src/codeblock'; import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials'; import FindAndReplace from '@ckeditor/ckeditor5-find-and-replace/src/findandreplace'; import FontBackgroundColor from '@ckeditor/ckeditor5-font/src/fontbackgroundcolor'; import FontColor from '@ckeditor/ckeditor5-font/src/fontcolor'; import FontFamily from '@ckeditor/ckeditor5-font/src/fontfamily'; import FontSize from '@ckeditor/ckeditor5-font/src/fontsize'; import GeneralHtmlSupport from '@ckeditor/ckeditor5-html-support/src/generalhtmlsupport'; import Heading from '@ckeditor/ckeditor5-heading/src/heading'; import Highlight from '@ckeditor/ckeditor5-highlight/src/highlight'; import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline'; import HtmlComment from '@ckeditor/ckeditor5-html-support/src/htmlcomment'; import HtmlEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed'; import Image from '@ckeditor/ckeditor5-image/src/image'; import ImageCaption from '@ckeditor/ckeditor5-image/src/imagecaption'; import ImageInsert from '@ckeditor/ckeditor5-image/src/imageinsert'; import ImageResize from '@ckeditor/ckeditor5-image/src/imageresize'; import ImageStyle from '@ckeditor/ckeditor5-image/src/imagestyle'; import ImageToolbar from '@ckeditor/ckeditor5-image/src/imagetoolbar'; import ImageUpload from '@ckeditor/ckeditor5-image/src/imageupload'; import Indent from '@ckeditor/ckeditor5-indent/src/indent'; import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock'; import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic'; import Link from '@ckeditor/ckeditor5-link/src/link'; import LinkImage from '@ckeditor/ckeditor5-link/src/linkimage'; import List from '@ckeditor/ckeditor5-list/src/list'; import ListProperties from '@ckeditor/ckeditor5-list/src/listproperties'; import Markdown from '@ckeditor/ckeditor5-markdown-gfm/src/markdown'; import MediaEmbed from '@ckeditor/ckeditor5-media-embed/src/mediaembed'; import MediaEmbedToolbar from '@ckeditor/ckeditor5-media-embed/src/mediaembedtoolbar'; import PageBreak from '@ckeditor/ckeditor5-page-break/src/pagebreak'; import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph'; import PasteFromOffice from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice'; import RemoveFormat from '@ckeditor/ckeditor5-remove-format/src/removeformat'; import SourceEditing from '@ckeditor/ckeditor5-source-editing/src/sourceediting'; import SpecialCharacters from '@ckeditor/ckeditor5-special-characters/src/specialcharacters'; import SpecialCharactersArrows from '@ckeditor/ckeditor5-special-characters/src/specialcharactersarrows'; import SpecialCharactersCurrency from '@ckeditor/ckeditor5-special-characters/src/specialcharacterscurrency'; import SpecialCharactersEssentials from '@ckeditor/ckeditor5-special-characters/src/specialcharactersessentials'; import SpecialCharactersLatin from '@ckeditor/ckeditor5-special-characters/src/specialcharacterslatin'; import SpecialCharactersMathematical from '@ckeditor/ckeditor5-special-characters/src/specialcharactersmathematical'; import SpecialCharactersText from '@ckeditor/ckeditor5-special-characters/src/specialcharacterstext'; import StandardEditingMode from '@ckeditor/ckeditor5-restricted-editing/src/standardeditingmode'; import Strikethrough from '@ckeditor/ckeditor5-basic-styles/src/strikethrough'; import Subscript from '@ckeditor/ckeditor5-basic-styles/src/subscript'; import Superscript from '@ckeditor/ckeditor5-basic-styles/src/superscript'; import Table from '@ckeditor/ckeditor5-table/src/table'; import TableCaption from '@ckeditor/ckeditor5-table/src/tablecaption'; import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties'; import TableColumnResize from '@ckeditor/ckeditor5-table/src/tablecolumnresize'; import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties'; import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar'; import TextPartLanguage from '@ckeditor/ckeditor5-language/src/textpartlanguage'; import TextTransformation from '@ckeditor/ckeditor5-typing/src/texttransformation'; import TodoList from '@ckeditor/ckeditor5-list/src/todolist'; import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline'; import WordCount from '@ckeditor/ckeditor5-word-count/src/wordcount'; export default class ClassicEditor extends ClassicEditorBase { } // Plugins to include in the build. ClassicEditor.builtinPlugins = [ Alignment, Autoformat, AutoImage, AutoLink, Autosave, BlockQuote, Bold, Code, CodeBlock, Essentials, FindAndReplace, FontBackgroundColor, FontColor, FontFamily, FontSize, GeneralHtmlSupport, Heading, Highlight, HorizontalLine, HtmlComment, HtmlEmbed, Image, ImageCaption, ImageInsert, ImageResize, ImageStyle, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, LinkImage, List, ListProperties, Markdown, MediaEmbed, MediaEmbedToolbar, PageBreak, Paragraph, PasteFromOffice, RemoveFormat, SourceEditing, SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, StandardEditingMode, Strikethrough, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar, TextPartLanguage, TextTransformation, TodoList, Underline, WordCount ]; // Editor configuration. ClassicEditor.defaultConfig = { toolbar: { items: [ 'heading', '|', 'fontFamily', 'fontSize', '|', 'fontColor', 'fontBackgroundColor', 'highlight', '|', 'bold', 'italic', 'underline', 'strikethrough', '|', 'bulletedList', 'numberedList', 'todoList', '|', 'outdent', 'indent', 'alignment', '|', 'code', 'codeBlock', '|', 'superscript', 'subscript', '|', 'blockQuote', 'horizontalLine', 'pageBreak', 'specialCharacters', '|', 'link', 'imageInsert', 'insertTable', 'htmlEmbed', 'mediaEmbed', '|', 'sourceEditing', '|', 'findAndReplace', '|', 'removeFormat', '|', 'undo', 'redo' ], shouldNotGroupWhenFull: true }, image: { toolbar: [ 'imageTextAlternative', 'toggleImageCaption', 'imageStyle:inline', 'imageStyle:block', 'imageStyle:side', 'linkImage' ] }, table: { contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells', 'tableCellProperties', 'tableProperties' ] }, // This value must be kept in sync with the language defined in webpack.config.js. language: 'en' };