Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Internal: Aligned code to changes in ckeditor5-core. See ckeditor/cke…
Browse files Browse the repository at this point in the history
…ditor5-core#140.
  • Loading branch information
Reinmar committed Jul 10, 2018
1 parent 767be88 commit e8716c0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 47 deletions.
89 changes: 44 additions & 45 deletions src/ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,49 +23,48 @@ import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';

export default class InlineEditor extends InlineEditorBase {}

InlineEditor.build = {
plugins: [
EssentialsPlugin,
UploadadapterPlugin,
AutoformatPlugin,
BoldPlugin,
ItalicPlugin,
BlockquotePlugin,
EasyimagePlugin,
HeadingPlugin,
ImagePlugin,
ImagecaptionPlugin,
ImagestylePlugin,
ImagetoolbarPlugin,
ImageuploadPlugin,
LinkPlugin,
ListPlugin,
ParagraphPlugin
],
config: {
toolbar: {
items: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'imageUpload',
'blockQuote',
'undo',
'redo'
]
},
image: {
toolbar: [
'imageStyle:full',
'imageStyle:side',
'|',
'imageTextAlternative'
]
},
language: 'en'
}
InlineEditor.builtinPlugins = [
EssentialsPlugin,
UploadadapterPlugin,
AutoformatPlugin,
BoldPlugin,
ItalicPlugin,
BlockquotePlugin,
EasyimagePlugin,
HeadingPlugin,
ImagePlugin,
ImagecaptionPlugin,
ImagestylePlugin,
ImagetoolbarPlugin,
ImageuploadPlugin,
LinkPlugin,
ListPlugin,
ParagraphPlugin
];

InlineEditor.defaultConfig = {
toolbar: {
items: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'imageUpload',
'blockQuote',
'undo',
'redo'
]
},
image: {
toolbar: [
'imageStyle:full',
'imageStyle:side',
'|',
'imageTextAlternative'
]
},
language: 'en'
};
4 changes: 2 additions & 2 deletions tests/ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ describe( 'InlineEditor build', () => {

describe( 'buid', () => {
it( 'contains plugins', () => {
expect( InlineEditor.build.plugins ).to.not.be.empty;
expect( InlineEditor.builtinPlugins ).to.not.be.empty;
} );

it( 'contains config', () => {
expect( InlineEditor.build.config.toolbar ).to.not.be.empty;
expect( InlineEditor.defaultConfig.toolbar ).to.not.be.empty;
} );
} );

Expand Down

0 comments on commit e8716c0

Please sign in to comment.