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,8 +31,7 @@ import TabletoolbarPlugin from '@ckeditor/ckeditor5-table/src/tabletoolbar'; ...@@ -31,8 +31,7 @@ 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,
...@@ -57,8 +56,9 @@ DecoupledEditor.build = { ...@@ -57,8 +56,9 @@ DecoupledEditor.build = {
ParagraphPlugin, ParagraphPlugin,
TablePlugin, TablePlugin,
TabletoolbarPlugin TabletoolbarPlugin
], ];
config: {
DecoupledEditor.defaultConfig = {
toolbar: { toolbar: {
items: [ items: [
'heading', 'heading',
...@@ -108,5 +108,4 @@ DecoupledEditor.build = { ...@@ -108,5 +108,4 @@ DecoupledEditor.build = {
] ]
}, },
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