@@ -23,6 +23,9 @@ import LabeledInputView from '@ckeditor/ckeditor5-ui/src/labeledinput/labeledinp
23
23
24
24
import boldIcon from '@ckeditor/ckeditor5-basic-styles/theme/icons/bold.svg' ;
25
25
import italicIcon from '@ckeditor/ckeditor5-basic-styles/theme/icons/italic.svg' ;
26
+ import checkIcon from '@ckeditor/ckeditor5-core/theme/icons/check.svg' ;
27
+ import cancelIcon from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg' ;
28
+
26
29
import SplitButtonView from '@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview' ;
27
30
28
31
class TextView extends View {
@@ -114,9 +117,11 @@ function renderButton() {
114
117
const actionButton = button ( { label : 'Action button' } ) ;
115
118
const roundedButton = button ( { label : 'Rounded corners' } ) ;
116
119
const boldButton = button ( { label : 'Bold text' } ) ;
120
+ const saveButton = button ( { label : 'Save' , withText : false , icon : checkIcon } ) ;
121
+ const cancelButton = button ( { label : 'Cancel' , withText : false , icon : cancelIcon } ) ;
117
122
118
123
ui . buttonTypes . add ( toolbar ( [
119
- actionButton , roundedButton , boldButton
124
+ actionButton , roundedButton , boldButton , saveButton , cancelButton
120
125
] ) ) ;
121
126
122
127
// TODO: It requires model interface.
@@ -128,6 +133,9 @@ function renderButton() {
128
133
// TODO: It requires model interface.
129
134
boldButton . element . classList . add ( 'ck-button-bold' ) ;
130
135
136
+ saveButton . element . classList . add ( 'ck-button-save' ) ;
137
+ cancelButton . element . classList . add ( 'ck-button-cancel' ) ;
138
+
131
139
// --- Icon ------------------------------------------------------------
132
140
133
141
ui . buttonIcon . add ( toolbar ( [
0 commit comments