8
0
Quellcode durchsuchen

Use browse files icon for toolbar button.

Maciej Gołaszewski vor 7 Jahren
Ursprung
Commit
68b7ce3f76

+ 2 - 2
packages/ckeditor5-ckfinder/src/ckfinderui.js

@@ -10,7 +10,7 @@
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
 
-import ckfinderIcon from '@ckeditor/ckeditor5-ui/theme/icons/dropdown-arrow.svg';
+import browseFilesIcon from '../theme/icons/browse-files.svg';
 
 /**
  * The CKFinder UI plugin. It introduces he `'ckfinder'` toolbar button.
@@ -40,7 +40,7 @@ export default class CKFinderUI extends Plugin {
 
 			button.set( {
 				label: t( 'Insert image or file' ),
-				icon: ckfinderIcon,
+				icon: browseFilesIcon,
 				tooltip: true
 			} );
 

+ 2 - 2
packages/ckeditor5-ckfinder/tests/ckfinderui.js

@@ -10,9 +10,9 @@ import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import global from '@ckeditor/ckeditor5-utils/src/dom/global';
 
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
-import ckfinderIcon from '@ckeditor/ckeditor5-ui/theme/icons/dropdown-arrow.svg';
 
 import CKFinder from '../src/ckfinder';
+import browseFilesIcon from '../theme/icons/browse-files.svg';
 
 describe( 'CKFinderUI', () => {
 	let editorElement, editor, button;
@@ -60,7 +60,7 @@ describe( 'CKFinderUI', () => {
 		} );
 
 		it( 'should set an #icon of the #buttonView', () => {
-			expect( button.icon ).to.equal( ckfinderIcon );
+			expect( button.icon ).to.equal( browseFilesIcon );
 		} );
 
 		it( 'should enable tooltips for the #buttonView', () => {