Kaynağa Gözat

Internal: Created a dedicated remove-format icon.

Aleksander Nowodzinski 6 yıl önce
ebeveyn
işleme
150daee43f

+ 2 - 3
packages/ckeditor5-remove-format/src/removeformatui.js

@@ -9,8 +9,7 @@
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
-
-import eraseIcon from '@ckeditor/ckeditor5-core/theme/icons/eraser.svg';
+import removeFormatIcon from '../theme/icons/remove-format.svg';
 
 const REMOVE_FORMAT = 'removeformat';
 
@@ -40,7 +39,7 @@ export default class RemoveFormatUI extends Plugin {
 
 			view.set( {
 				label: t( 'Remove format' ),
-				icon: eraseIcon,
+				icon: removeFormatIcon,
 				tooltip: true
 			} );
 

+ 1 - 0
packages/ckeditor5-remove-format/theme/icons/remove-format.svg

@@ -0,0 +1 @@
+<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 17h8a.5.5 0 1 1 0 1h-8a.5.5 0 1 1 0-1zm12.213-.244l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414zM5.508 4.5l-.752 1.012H3.614L4.46 3h12.58l-.69 2.512h-1.139L15.045 4.5h-3.713L9.2 16H6.84L9.092 4.5H5.508z"/></svg>