|
@@ -3,12 +3,10 @@ import { BalloonEditor as BalloonEditorBase } from '@ckeditor/ckeditor5-editor-b
|
|
|
import { InlineEditor as InlineEditorBase } from '@ckeditor/ckeditor5-editor-inline/src/inlineeditor.js';
|
|
import { InlineEditor as InlineEditorBase } from '@ckeditor/ckeditor5-editor-inline/src/inlineeditor.js';
|
|
|
|
|
|
|
|
import { Essentials } from '@ckeditor/ckeditor5-essentials/src/essentials.js';
|
|
import { Essentials } from '@ckeditor/ckeditor5-essentials/src/essentials.js';
|
|
|
-import { CKFinderUploadAdapter as UploadAdapter } from '@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.js';
|
|
|
|
|
import { Autoformat } from '@ckeditor/ckeditor5-autoformat/src/autoformat.js';
|
|
import { Autoformat } from '@ckeditor/ckeditor5-autoformat/src/autoformat.js';
|
|
|
import { Bold } from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
|
|
import { Bold } from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
|
|
|
import { Italic } from '@ckeditor/ckeditor5-basic-styles/src/italic.js';
|
|
import { Italic } from '@ckeditor/ckeditor5-basic-styles/src/italic.js';
|
|
|
import { BlockQuote } from '@ckeditor/ckeditor5-block-quote/src/blockquote.js';
|
|
import { BlockQuote } from '@ckeditor/ckeditor5-block-quote/src/blockquote.js';
|
|
|
-import { CKFinder } from '@ckeditor/ckeditor5-ckfinder/src/ckfinder.js';
|
|
|
|
|
import { Heading } from '@ckeditor/ckeditor5-heading/src/heading.js';
|
|
import { Heading } from '@ckeditor/ckeditor5-heading/src/heading.js';
|
|
|
import { HtmlEmbed } from '@ckeditor/ckeditor5-html-embed/src/htmlembed.js';
|
|
import { HtmlEmbed } from '@ckeditor/ckeditor5-html-embed/src/htmlembed.js';
|
|
|
import { Image } from '@ckeditor/ckeditor5-image/src/image.js';
|
|
import { Image } from '@ckeditor/ckeditor5-image/src/image.js';
|
|
@@ -21,6 +19,7 @@ import { LinkImage } from '@ckeditor/ckeditor5-link/src/linkimage.js';
|
|
|
import { Indent } from '@ckeditor/ckeditor5-indent/src/indent.js';
|
|
import { Indent } from '@ckeditor/ckeditor5-indent/src/indent.js';
|
|
|
import { Link } from '@ckeditor/ckeditor5-link/src/link.js';
|
|
import { Link } from '@ckeditor/ckeditor5-link/src/link.js';
|
|
|
import { List } from '@ckeditor/ckeditor5-list/src/list.js';
|
|
import { List } from '@ckeditor/ckeditor5-list/src/list.js';
|
|
|
|
|
+import { ListProperties } from '@ckeditor/ckeditor5-list/src/listproperties.js';
|
|
|
import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed/src/mediaembed.js';
|
|
import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed/src/mediaembed.js';
|
|
|
import { Paragraph } from '@ckeditor/ckeditor5-paragraph/src/paragraph.js';
|
|
import { Paragraph } from '@ckeditor/ckeditor5-paragraph/src/paragraph.js';
|
|
|
import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice.js';
|
|
import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice.js';
|
|
@@ -42,7 +41,8 @@ import { SpecialCharacters } from '@ckeditor/ckeditor5-special-characters/src/sp
|
|
|
import { SpecialCharactersEssentials } from '@ckeditor/ckeditor5-special-characters/src/specialcharactersessentials.js';
|
|
import { SpecialCharactersEssentials } from '@ckeditor/ckeditor5-special-characters/src/specialcharactersessentials.js';
|
|
|
|
|
|
|
|
import { TableCellProperties, TableColumnResize, TableProperties } from '@ckeditor/ckeditor5-table';
|
|
import { TableCellProperties, TableColumnResize, TableProperties } from '@ckeditor/ckeditor5-table';
|
|
|
-import { FontSize } from '@ckeditor/ckeditor5-font';
|
|
|
|
|
|
|
+import { FontSize, FontFamily } from '@ckeditor/ckeditor5-font';
|
|
|
|
|
+import { HorizontalLine } from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline.js';
|
|
|
|
|
|
|
|
class ClassicEditor extends ClassicEditorBase {}
|
|
class ClassicEditor extends ClassicEditorBase {}
|
|
|
class BalloonEditor extends BalloonEditorBase {}
|
|
class BalloonEditor extends BalloonEditorBase {}
|
|
@@ -76,7 +76,7 @@ function SpecialCharactersEmoji( editor ) {
|
|
|
// Plugins to include in the build.
|
|
// Plugins to include in the build.
|
|
|
const builtinPlugins = [
|
|
const builtinPlugins = [
|
|
|
Essentials,
|
|
Essentials,
|
|
|
- UploadAdapter,
|
|
|
|
|
|
|
+ // UploadAdapter, // Коммерческий плагин
|
|
|
Autoformat,
|
|
Autoformat,
|
|
|
Bold,
|
|
Bold,
|
|
|
Clipboard,
|
|
Clipboard,
|
|
@@ -86,7 +86,7 @@ const builtinPlugins = [
|
|
|
Subscript,
|
|
Subscript,
|
|
|
Superscript,
|
|
Superscript,
|
|
|
BlockQuote,
|
|
BlockQuote,
|
|
|
- CKFinder,
|
|
|
|
|
|
|
+ // CKFinder, // Коммерческий плагин
|
|
|
Heading,
|
|
Heading,
|
|
|
HtmlEmbed,
|
|
HtmlEmbed,
|
|
|
Image,
|
|
Image,
|
|
@@ -99,6 +99,7 @@ const builtinPlugins = [
|
|
|
Indent,
|
|
Indent,
|
|
|
Link,
|
|
Link,
|
|
|
List,
|
|
List,
|
|
|
|
|
+ ListProperties,
|
|
|
MediaEmbed,
|
|
MediaEmbed,
|
|
|
Paragraph,
|
|
Paragraph,
|
|
|
PasteFromOffice,
|
|
PasteFromOffice,
|
|
@@ -110,13 +111,15 @@ const builtinPlugins = [
|
|
|
TableCellProperties,
|
|
TableCellProperties,
|
|
|
TextTransformation,
|
|
TextTransformation,
|
|
|
FontSize,
|
|
FontSize,
|
|
|
|
|
+ FontFamily,
|
|
|
FontColor,
|
|
FontColor,
|
|
|
FontBackgroundColor,
|
|
FontBackgroundColor,
|
|
|
Alignment,
|
|
Alignment,
|
|
|
SpecialCharacters,
|
|
SpecialCharacters,
|
|
|
CodeBlock,
|
|
CodeBlock,
|
|
|
SpecialCharactersEssentials,
|
|
SpecialCharactersEssentials,
|
|
|
- SpecialCharactersEmoji
|
|
|
|
|
|
|
+ SpecialCharactersEmoji,
|
|
|
|
|
+ HorizontalLine
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
BalloonEditor.builtinPlugins = builtinPlugins;
|
|
BalloonEditor.builtinPlugins = builtinPlugins;
|
|
@@ -135,19 +138,27 @@ const defaultConfig = {
|
|
|
'bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript',
|
|
'bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript',
|
|
|
'link', 'bulletedList', 'numberedList',
|
|
'link', 'bulletedList', 'numberedList',
|
|
|
'|',
|
|
'|',
|
|
|
- 'fontSize', 'fontColor', 'fontBackgroundColor',
|
|
|
|
|
|
|
+ 'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor',
|
|
|
'|',
|
|
'|',
|
|
|
'alignment',
|
|
'alignment',
|
|
|
'|',
|
|
'|',
|
|
|
'indent', 'outdent',
|
|
'indent', 'outdent',
|
|
|
'|',
|
|
'|',
|
|
|
- 'imageUpload', 'blockQuote', 'insertTable',
|
|
|
|
|
|
|
+ 'blockQuote', 'insertTable',
|
|
|
'mediaEmbed',
|
|
'mediaEmbed',
|
|
|
'codeBlock',
|
|
'codeBlock',
|
|
|
|
|
+ 'horizontalLine',
|
|
|
'undo', 'redo',
|
|
'undo', 'redo',
|
|
|
'specialCharacters'
|
|
'specialCharacters'
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ list: {
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ styles: true,
|
|
|
|
|
+ startIndex: true,
|
|
|
|
|
+ reversed: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
fontSize: {
|
|
fontSize: {
|
|
|
options: [
|
|
options: [
|
|
|
9,
|
|
9,
|
|
@@ -159,6 +170,19 @@ const defaultConfig = {
|
|
|
21
|
|
21
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ fontFamily: {
|
|
|
|
|
+ options: [
|
|
|
|
|
+ 'default',
|
|
|
|
|
+ 'Arial, Helvetica, sans-serif',
|
|
|
|
|
+ 'Courier New, Courier, monospace',
|
|
|
|
|
+ 'Georgia, serif',
|
|
|
|
|
+ 'Lucida Sans Unicode, Lucida Grande, sans-serif',
|
|
|
|
|
+ 'Tahoma, Geneva, sans-serif',
|
|
|
|
|
+ 'Times New Roman, Times, serif',
|
|
|
|
|
+ 'Trebuchet MS, Helvetica, sans-serif',
|
|
|
|
|
+ 'Verdana, Geneva, sans-serif'
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
image: {
|
|
image: {
|
|
|
styles: [
|
|
styles: [
|
|
|
'alignLeft', 'alignCenter', 'alignRight'
|
|
'alignLeft', 'alignCenter', 'alignRight'
|
|
@@ -193,7 +217,7 @@ const defaultConfig = {
|
|
|
'imageResize',
|
|
'imageResize',
|
|
|
'|',
|
|
'|',
|
|
|
'imageTextAlternative',
|
|
'imageTextAlternative',
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
table: {
|
|
table: {
|
|
|
contentToolbar: [
|
|
contentToolbar: [
|