import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor.js'; import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment.js'; import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat.js'; import AutoLink from '@ckeditor/ckeditor5-link/src/autolink.js'; import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.js'; import BlockQuote from '@ckeditor/ckeditor5-block-quote/src/blockquote.js'; import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js'; import Code from '@ckeditor/ckeditor5-basic-styles/src/code.js'; import CodeBlock from '@ckeditor/ckeditor5-code-block/src/codeblock.js'; import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials.js'; import FontBackgroundColor from '@ckeditor/ckeditor5-font/src/fontbackgroundcolor.js'; import FontColor from '@ckeditor/ckeditor5-font/src/fontcolor.js'; import FontFamily from '@ckeditor/ckeditor5-font/src/fontfamily.js'; import FontSize from '@ckeditor/ckeditor5-font/src/fontsize.js'; import Heading from '@ckeditor/ckeditor5-heading/src/heading.js'; import Highlight from '@ckeditor/ckeditor5-highlight/src/highlight.js'; import Indent from '@ckeditor/ckeditor5-indent/src/indent.js'; import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock.js'; import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic.js'; import Link from '@ckeditor/ckeditor5-link/src/link.js'; import List from '@ckeditor/ckeditor5-list/src/list.js'; import ListProperties from '@ckeditor/ckeditor5-list/src/listproperties.js'; import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph.js'; import PasteFromOffice from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice.js'; import RemoveFormat from '@ckeditor/ckeditor5-remove-format/src/removeformat.js'; import Strikethrough from '@ckeditor/ckeditor5-basic-styles/src/strikethrough.js'; import Subscript from '@ckeditor/ckeditor5-basic-styles/src/subscript.js'; import Superscript from '@ckeditor/ckeditor5-basic-styles/src/superscript.js'; import Table from '@ckeditor/ckeditor5-table/src/table.js'; import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar.js'; import TextTransformation from '@ckeditor/ckeditor5-typing/src/texttransformation.js'; import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline.js'; import WordCount from '@ckeditor/ckeditor5-word-count/src/wordcount.js'; import Placeholder from './plugins/placeholder/placeholder.js'; import MediaEmbed from '@ckeditor/ckeditor5-media-embed/src/mediaembed'; class Editor extends ClassicEditor {} // Plugins to include in the build. Editor.builtinPlugins = [ Alignment, Autoformat, AutoLink, Base64UploadAdapter, BlockQuote, Bold, Code, CodeBlock, Essentials, FontBackgroundColor, FontColor, FontFamily, FontSize, Heading, Highlight, Indent, IndentBlock, Italic, Link, List, ListProperties, Paragraph, PasteFromOffice, RemoveFormat, Strikethrough, Subscript, Superscript, Table, TableToolbar, TextTransformation, Underline, WordCount, Placeholder, MediaEmbed ]; Editor.defaultConfig = { toolbar: { items: [ 'heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', '|', 'outdent', 'indent', '|', 'blockQuote', 'insertTable', 'undo', 'redo', 'alignment', 'code', 'codeBlock', 'fontBackgroundColor', 'fontSize', 'fontColor', 'fontFamily', 'highlight', 'removeFormat', 'strikethrough', 'subscript', 'superscript', 'underline', 'placeholder', 'mediaEmbed' ], shouldNotGroupWhenFull: true, language: 'en' }, alignment: { options: [ 'left', 'right', 'center', 'justify' ] }, heading: { options: [ { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' }, { model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' }, { model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' }, { model: 'heading3', view: 'h3', title: 'Heading 3', class: 'ck-heading_heading3' }, { model: 'heading4', view: 'h4', title: 'Heading 4', class: 'ck-heading_heading4' }, { model: 'heading5', view: 'h5', title: 'Heading 5', class: 'ck-heading_heading5' }, { model: 'heading6', view: 'h6', title: 'Heading 6', class: 'ck-heading_heading6' } ] }, fontFamily: { options: [ 'Sans-Serif', 'Serif', 'Monospace' ] }, list: { properties: { styles: true, startIndex: true, reversed: true } } } export default Editor;