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';
export default class DecoupledEditor extends DecoupledEditorBase {}
DecoupledEditor.build = {
plugins: [
DecoupledEditor.builtinPlugins = [
EssentialsPlugin,
AlignmentPlugin,
FontsizePlugin,
......@@ -57,8 +56,9 @@ DecoupledEditor.build = {
ParagraphPlugin,
TablePlugin,
TabletoolbarPlugin
],
config: {
];
DecoupledEditor.defaultConfig = {
toolbar: {
items: [
'heading',
......@@ -108,5 +108,4 @@ DecoupledEditor.build = {
]
},
language: 'en'
}
};
......@@ -27,11 +27,11 @@ describe( 'DecoupledEditor build', () => {
describe( 'buid', () => {
it( 'contains plugins', () => {
expect( DecoupledEditor.build.plugins ).to.not.be.empty;
expect( DecoupledEditor.builtinPlugins ).to.not.be.empty;
} );
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