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

Commit f974881

Browse files
committed
Fix: It will be possible to configure toolbar offset without overriding preconfigured toolbar items. See ckeditor/ckeditor5#572.
1 parent d1526fa commit f974881

File tree

2 files changed

+26
-22
lines changed

2 files changed

+26
-22
lines changed

build-config.js

+13-11
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,19 @@ module.exports = {
3838

3939
// Editor config.
4040
config: {
41-
toolbar: [
42-
'headings',
43-
'bold',
44-
'italic',
45-
'link',
46-
'bulletedList',
47-
'numberedList',
48-
'blockQuote',
49-
'undo',
50-
'redo'
51-
],
41+
toolbar: {
42+
items: [
43+
'headings',
44+
'bold',
45+
'italic',
46+
'link',
47+
'bulletedList',
48+
'numberedList',
49+
'blockQuote',
50+
'undo',
51+
'redo'
52+
]
53+
},
5254

5355
image: {
5456
toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]

src/ckeditor.js

+13-11
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,19 @@ InlineEditor.build = {
4343
ImageuploadPlugin
4444
],
4545
config: {
46-
toolbar: [
47-
'headings',
48-
'bold',
49-
'italic',
50-
'link',
51-
'bulletedList',
52-
'numberedList',
53-
'blockQuote',
54-
'undo',
55-
'redo'
56-
],
46+
toolbar: {
47+
items: [
48+
'headings',
49+
'bold',
50+
'italic',
51+
'link',
52+
'bulletedList',
53+
'numberedList',
54+
'blockQuote',
55+
'undo',
56+
'redo'
57+
]
58+
},
5759
image: {
5860
toolbar: [
5961
'imageStyleFull',

0 commit comments

Comments
 (0)