From ec73cc2499cc9205ad496c20720a22c4962639f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Fri, 8 Sep 2017 13:13:24 +0200 Subject: [PATCH] Docs: Moved toolbar option higher to make it more visible that it's the image toolbar configuration (without it error is thrown). --- docs/features/image.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/features/image.md b/docs/features/image.md index 954e0dff..69edd2e5 100644 --- a/docs/features/image.md +++ b/docs/features/image.md @@ -121,6 +121,9 @@ import alignRightIcon from '@ckeditor/ckeditor5-core/theme/icons/object-right.sv ClassicEditor .create( document.querySelector( '#editor' ), { image: { + // You need to configure the image toolbar too, so it uses the new style buttons. + toolbar: [ 'imageTextAlternative', '|', 'imageStyleLeft', 'imageStyleFull', 'imageStyleRight' ], + styles: [ // This option is equal to a situation where no style is applied. { @@ -147,9 +150,7 @@ ClassicEditor value: 'right', className: 'image-style-right' } - ], - - toolbar: [ 'imageTextAlternative', '|', 'imageStyleLeft', 'imageStyleFull', 'imageStyleRight' ] + ] } } ) .then( ... )