Преглед на файлове

Import SVG files straight to JS.

Piotrek Koszuliński преди 9 години
родител
ревизия
fd896a4c19
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      packages/ckeditor5-link/src/link.js

+ 5 - 2
packages/ckeditor5-link/src/link.js

@@ -20,6 +20,9 @@ import BalloonPanelView from 'ckeditor5-ui/src/balloonpanel/balloonpanelview';
 
 import LinkFormView from './ui/linkformview';
 
+import linkIcon from '../theme/icons/link.svg';
+import unlinkIcon from '../theme/icons/unlink.svg';
+
 /**
  * The link feature. It introduces the Link and Unlink buttons and the <kbd>Ctrl+K</kbd> keystroke.
  *
@@ -79,7 +82,7 @@ export default class Link extends Plugin {
 
 			button.isEnabled = true;
 			button.label = t( 'Link' );
-			button.icon = 'link';
+			button.icon = linkIcon;
 			button.keystroke = 'CTRL+K';
 
 			// Bind button to the command.
@@ -108,7 +111,7 @@ export default class Link extends Plugin {
 
 			button.isEnabled = false;
 			button.label = t( 'Unlink' );
-			button.icon = 'unlink';
+			button.icon = unlinkIcon;
 
 			// Bind button to the command.
 			button.bind( 'isEnabled' ).to( unlinkCommand, 'isEnabled' );