Skip to content

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 a7d4585 commit 97375e7
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 67 deletions.
39 changes: 19 additions & 20 deletions docs/builds/guides/development/installing-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,26 +195,25 @@ import BlockquotePlugin from '@ckeditor/ckeditor5-block-quote/src/blockquote';

export default class ClassicEditor extends ClassicEditorBase {}

ClassicEditor.build = {
plugins: [
EssentialsPlugin,
UploadadapterPlugin,
AutoformatPlugin,
BoldPlugin,
ItalicPlugin,
BlockquotePlugin,
// ...
],
config: {
toolbar: {
items: [
'heading',
'bold',
// ...
]
},
// ...
}
ClassicEditor.builtInPlugins = [
EssentialsPlugin,
UploadadapterPlugin,
AutoformatPlugin,
BoldPlugin,
ItalicPlugin,
BlockquotePlugin,
// ...
];

ClassicEditor.defaultConfig = {
toolbar: {
items: [
'heading',
'bold',
// ...
]
},
// ...
};
```

Expand Down
90 changes: 44 additions & 46 deletions docs/builds/guides/integration/advanced-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,53 +193,51 @@ import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';

export default class ClassicEditor extends ClassicEditorBase {}

ClassicEditor.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'
}
ClassicEditor.builtinPlugins = [
EssentialsPlugin,
UploadadapterPlugin,
AutoformatPlugin,
BoldPlugin,
ItalicPlugin,
BlockquotePlugin,
EasyimagePlugin,
HeadingPlugin,
ImagePlugin,
ImagecaptionPlugin,
ImagestylePlugin,
ImagetoolbarPlugin,
ImageuploadPlugin,
LinkPlugin,
ListPlugin,
ParagraphPlugin
];

ClassicEditor.defaultConfig = {
toolbar: {
items: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'imageUpload',
'blockQuote',
'undo',
'redo'
]
},
image: {
toolbar: [
'imageStyle:full',
'imageStyle:side',
'|',
'imageTextAlternative'
]
},
language: 'en'
};

```

This module will export an editor creator class which has all the plugins and configuration that you need already built-in. To use such editor, simply import that class and call the static `.create()` method like in all {@link builds/guides/integration/basic-api#creating-an-editor examples}.
Expand Down
2 changes: 1 addition & 1 deletion docs/builds/guides/integration/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ClassicEditor
Each build has a number of plugins available. You can easily list all plugins available in your build:

```js
ClassicEditor.build.plugins.map( plugin => plugin.pluginName );
ClassicEditor.builtinPlugins.map( plugin => plugin.pluginName );
```

## Adding features
Expand Down

0 comments on commit 97375e7

Please sign in to comment.