Browse Source

Changed editor config - image can be configured to left, right or full.

Kamil Piechaczek 7 years ago
parent
commit
b73673aa68

+ 6 - 1
packages/ckeditor5-build-decoupled-document/build-config.js

@@ -69,7 +69,12 @@ module.exports = {
 		},
 
 		image: {
-			toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ]
+			styles: [
+				'full',
+				'alignLeft',
+				'alignRight'
+			],
+			toolbar: [ 'imageStyle:alignLeft', 'imageStyle:full', 'imageStyle:alignRight', '|', 'imageTextAlternative' ]
 		},
 
 		// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.

+ 7 - 1
packages/ckeditor5-build-decoupled-document/src/ckeditor.js

@@ -82,9 +82,15 @@ DecoupledEditor.build = {
 			]
 		},
 		image: {
+			styles: [
+				'full',
+				'alignLeft',
+				'alignRight'
+			],
 			toolbar: [
+				'imageStyle:alignLeft',
 				'imageStyle:full',
-				'imageStyle:side',
+				'imageStyle:alignRight',
 				'|',
 				'imageTextAlternative'
 			]