8
0
Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
af3b4bebf3

+ 5 - 5
packages/ckeditor5-highlight/src/highlightui.js

@@ -14,7 +14,7 @@ import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
 
 import markerIcon from './../theme/icons/marker.svg';
 import penIcon from './../theme/icons/pen.svg';
-import rubberIcon from '@ckeditor/ckeditor5-core/theme/icons/low-vision.svg';
+import eraserIcon from './../theme/icons/eraser.svg';
 
 import Model from '@ckeditor/ckeditor5-ui/src/model';
 import createSplitButtonDropdown from '@ckeditor/ckeditor5-ui/src/dropdown/createsplitbuttondropdown';
@@ -66,7 +66,7 @@ export default class HighlightUI extends Plugin {
 	_addRemoveHighlightButton() {
 		const t = this.editor.t;
 
-		this._addButton( 'removeHighlight', t( 'Remove highlighting' ), rubberIcon );
+		this._addButton( 'removeHighlight', t( 'Remove highlighting' ), eraserIcon );
 	}
 
 	/**
@@ -181,9 +181,9 @@ export default class HighlightUI extends Plugin {
 
 				return buttonView;
 			} );
-			// Add rubber button to dropdown.
-			const rubberButton = componentFactory.create( 'removeHighlight' );
-			buttons.push( rubberButton );
+			// Add eraser button to dropdown.
+			const eraserButton = componentFactory.create( 'removeHighlight' );
+			buttons.push( eraserButton );
 
 			// Make toolbar button enabled when any button in dropdown is enabled.
 			model.bind( 'isEnabled' ).to(

+ 1 - 0
packages/ckeditor5-highlight/theme/icons/eraser.svg

@@ -0,0 +1 @@
+<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.774 9.069a1 1 0 0 0 0-1.415l-3.23-3.23a1 1 0 0 0-1.414 0L4.903 11.65a1 1 0 0 0 0 1.414l2.805 2.805h2.266l6.8-6.8zm-6.386 7.8H3.933v-1h2.36L4.197 13.77a2 2 0 0 1 0-2.828l7.226-7.226a2 2 0 0 1 2.829 0l3.23 3.23a2 2 0 0 1 0 2.829l-7.093 7.093zm-8.455 0v-1h1v1h-1zM13.649 3.577l4.108 4.114a1 1 0 0 1 0 1.414l-4.302 4.302-5.522-5.529 4.302-4.302a1 1 0 0 1 1.414 0z" fill="#333" fill-rule="nonzero"/></svg>