Skip to content

Commit

Permalink
fix(ckeditor): added all block level image alignments to toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Jul 17, 2023
1 parent 708cb7f commit 6fff942
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mod/ckeditor/views/default/ckeditor/config/base.js
Expand Up @@ -10,7 +10,16 @@ define(['elgg'], function(elgg) {
}
},
image: {
toolbar: ['toggleImageCaption', 'imageTextAlternative', 'imageStyle:inline', 'imageStyle:block', 'imageStyle:side', 'linkImage'],
toolbar: ['toggleImageCaption', 'imageTextAlternative', {
title: '',
name: 'imageStyle:alignment',
items: [
'imageStyle:alignBlockLeft',
'imageStyle:block',
'imageStyle:alignBlockRight',
],
defaultItem: 'imageStyle:alignBlockLeft'
}, 'imageStyle:side', 'linkImage'],
resizeUnit: 'px'
},
link: {
Expand Down

0 comments on commit 6fff942

Please sign in to comment.