Commit 16194024 authored by Piotrek Koszuliński's avatar Piotrek Koszuliński

Internal: Aligned code to changes in ckeditor5-core. See ckeditor/ckeditor5-core#140.

parent 393f6dd6
...@@ -31,82 +31,81 @@ import TabletoolbarPlugin from '@ckeditor/ckeditor5-table/src/tabletoolbar'; ...@@ -31,82 +31,81 @@ import TabletoolbarPlugin from '@ckeditor/ckeditor5-table/src/tabletoolbar';
export default class DecoupledEditor extends DecoupledEditorBase {} export default class DecoupledEditor extends DecoupledEditorBase {}
DecoupledEditor.build = { DecoupledEditor.builtinPlugins = [
plugins: [ EssentialsPlugin,
EssentialsPlugin, AlignmentPlugin,
AlignmentPlugin, FontsizePlugin,
FontsizePlugin, FontfamilyPlugin,
FontfamilyPlugin, HighlightPlugin,
HighlightPlugin, UploadadapterPlugin,
UploadadapterPlugin, AutoformatPlugin,
AutoformatPlugin, BoldPlugin,
BoldPlugin, ItalicPlugin,
ItalicPlugin, StrikethroughPlugin,
StrikethroughPlugin, UnderlinePlugin,
UnderlinePlugin, BlockquotePlugin,
BlockquotePlugin, EasyimagePlugin,
EasyimagePlugin, HeadingPlugin,
HeadingPlugin, ImagePlugin,
ImagePlugin, ImagecaptionPlugin,
ImagecaptionPlugin, ImagestylePlugin,
ImagestylePlugin, ImagetoolbarPlugin,
ImagetoolbarPlugin, ImageuploadPlugin,
ImageuploadPlugin, LinkPlugin,
LinkPlugin, ListPlugin,
ListPlugin, ParagraphPlugin,
ParagraphPlugin, TablePlugin,
TablePlugin, TabletoolbarPlugin
TabletoolbarPlugin ];
],
config: { DecoupledEditor.defaultConfig = {
toolbar: { toolbar: {
items: [ items: [
'heading', 'heading',
'|', '|',
'fontsize', 'fontsize',
'fontfamily', 'fontfamily',
'|', '|',
'bold', 'bold',
'italic', 'italic',
'underline', 'underline',
'strikethrough', 'strikethrough',
'highlight', 'highlight',
'|', '|',
'alignment', 'alignment',
'|', '|',
'numberedList', 'numberedList',
'bulletedList', 'bulletedList',
'|', '|',
'link', 'link',
'blockquote', 'blockquote',
'imageUpload', 'imageUpload',
'insertTable', 'insertTable',
'|', '|',
'undo', 'undo',
'redo' 'redo'
] ]
}, },
image: { image: {
styles: [ styles: [
'full', 'full',
'alignLeft', 'alignLeft',
'alignRight' 'alignRight'
], ],
toolbar: [ toolbar: [
'imageStyle:alignLeft', 'imageStyle:alignLeft',
'imageStyle:full', 'imageStyle:full',
'imageStyle:alignRight', 'imageStyle:alignRight',
'|', '|',
'imageTextAlternative' 'imageTextAlternative'
] ]
}, },
table: { table: {
toolbar: [ toolbar: [
'tableColumn', 'tableColumn',
'tableRow', 'tableRow',
'mergeTableCells' 'mergeTableCells'
] ]
}, },
language: 'en' language: 'en'
}
}; };
...@@ -27,11 +27,11 @@ describe( 'DecoupledEditor build', () => { ...@@ -27,11 +27,11 @@ describe( 'DecoupledEditor build', () => {
describe( 'buid', () => { describe( 'buid', () => {
it( 'contains plugins', () => { it( 'contains plugins', () => {
expect( DecoupledEditor.build.plugins ).to.not.be.empty; expect( DecoupledEditor.builtinPlugins ).to.not.be.empty;
} ); } );
it( 'contains config', () => { it( 'contains config', () => {
expect( DecoupledEditor.build.config.toolbar ).to.not.be.empty; expect( DecoupledEditor.defaultConfig.toolbar ).to.not.be.empty;
} ); } );
} ); } );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment