|
|
@@ -12,6 +12,7 @@ import InputTextView from '@ckeditor/ckeditor5-ui/src/inputtext/inputtextview';
|
|
|
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
|
|
|
import { createDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
|
|
|
import ColorGrid from '@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview';
|
|
|
+import removeButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/eraser.svg';
|
|
|
import '../../theme/colorinput.css';
|
|
|
|
|
|
/**
|
|
|
@@ -214,6 +215,7 @@ export default class ColorInputView extends View {
|
|
|
|
|
|
removeColorButton.class = 'ck-dropdown__color-picker-remove-color';
|
|
|
removeColorButton.withText = true;
|
|
|
+ removeColorButton.icon = removeButtonIcon;
|
|
|
removeColorButton.label = t( 'Remove color' );
|
|
|
removeColorButton.on( 'execute', () => {
|
|
|
this.value = '';
|