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

Commit

Permalink
Docs: Moved toolbar option higher to make it more visible that it's t…
Browse files Browse the repository at this point in the history
…he image toolbar configuration (without it error is thrown).
  • Loading branch information
Reinmar committed Sep 8, 2017
1 parent 8a1b55a commit ec73cc2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/features/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
{
Expand All @@ -147,9 +150,7 @@ ClassicEditor
value: 'right',
className: 'image-style-right'
}
],

toolbar: [ 'imageTextAlternative', '|', 'imageStyleLeft', 'imageStyleFull', 'imageStyleRight' ]
]
}
} )
.then( ... )
Expand Down

0 comments on commit ec73cc2

Please sign in to comment.