|
|
@@ -19,11 +19,14 @@ import FontFamily from '@ckeditor/ckeditor5-font/src/fontfamily';
|
|
|
import FontSize from '@ckeditor/ckeditor5-font/src/fontsize';
|
|
|
import Highlight from '@ckeditor/ckeditor5-highlight/src/highlight';
|
|
|
import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline';
|
|
|
+import HtmlEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed';
|
|
|
import ImageResize from '@ckeditor/ckeditor5-image/src/imageresize';
|
|
|
import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock';
|
|
|
import LinkImage from '@ckeditor/ckeditor5-link/src/linkimage';
|
|
|
+import ListStyle from '@ckeditor/ckeditor5-list/src/liststyle';
|
|
|
import Mention from '@ckeditor/ckeditor5-mention/src/mention';
|
|
|
import PageBreak from '@ckeditor/ckeditor5-page-break/src/pagebreak';
|
|
|
+import PasteFromOffice from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice';
|
|
|
import RemoveFormat from '@ckeditor/ckeditor5-remove-format/src/removeformat';
|
|
|
import SpecialCharacters from '@ckeditor/ckeditor5-special-characters/src/specialcharacters';
|
|
|
import SpecialCharactersEssentials from '@ckeditor/ckeditor5-special-characters/src/specialcharactersessentials';
|
|
|
@@ -44,11 +47,11 @@ ClassicEditor
|
|
|
plugins: [
|
|
|
ArticlePluginSet, Underline, Strikethrough, Superscript, Subscript, Code, RemoveFormat,
|
|
|
FontColor, FontBackgroundColor, FontFamily, FontSize, Highlight,
|
|
|
- CodeBlock, TodoList, TableProperties, TableCellProperties,
|
|
|
- EasyImage, ImageResize, LinkImage, AutoImage,
|
|
|
+ CodeBlock, TodoList, ListStyle, TableProperties, TableCellProperties,
|
|
|
+ EasyImage, ImageResize, LinkImage, AutoImage, HtmlEmbed,
|
|
|
AutoLink, Mention, TextTransformation,
|
|
|
Alignment, IndentBlock,
|
|
|
- PageBreak, HorizontalLine,
|
|
|
+ PasteFromOffice, PageBreak, HorizontalLine,
|
|
|
SpecialCharacters, SpecialCharactersEssentials, WordCount
|
|
|
],
|
|
|
toolbar: [
|
|
|
@@ -62,6 +65,8 @@ ClassicEditor
|
|
|
'|',
|
|
|
'blockQuote', 'imageUpload', 'insertTable', 'mediaEmbed', 'codeBlock',
|
|
|
'|',
|
|
|
+ 'htmlEmbed',
|
|
|
+ '|',
|
|
|
'alignment', 'outdent', 'indent',
|
|
|
'|',
|
|
|
'pageBreak', 'horizontalLine', 'specialCharacters',
|
|
|
@@ -146,6 +151,9 @@ ClassicEditor
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ htmlEmbed: {
|
|
|
+ showPreviews: true
|
|
|
}
|
|
|
} )
|
|
|
.then( editor => {
|