diff --git a/docs/builds/guides/development/installing-plugins.md b/docs/builds/guides/development/installing-plugins.md index d0162d356eb..3d0b08fecf3 100644 --- a/docs/builds/guides/development/installing-plugins.md +++ b/docs/builds/guides/development/installing-plugins.md @@ -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', + // ... + ] + }, + // ... }; ``` diff --git a/docs/builds/guides/integration/advanced-setup.md b/docs/builds/guides/integration/advanced-setup.md index 13600c4fb21..8b21611b230 100644 --- a/docs/builds/guides/integration/advanced-setup.md +++ b/docs/builds/guides/integration/advanced-setup.md @@ -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}. diff --git a/docs/builds/guides/integration/configuration.md b/docs/builds/guides/integration/configuration.md index d0b264b9cfd..1d73af525a5 100644 --- a/docs/builds/guides/integration/configuration.md +++ b/docs/builds/guides/integration/configuration.md @@ -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