浏览代码

Brought back tooltips after ckeditor/ckeditor5-ui#120.

Piotrek Koszuliński 9 年之前
父节点
当前提交
682851ed3d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/ckeditor5-link/src/link.js

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

@@ -86,6 +86,7 @@ export default class Link extends Plugin {
 			button.label = t( 'Link' );
 			button.icon = linkIcon;
 			button.keystroke = 'CTRL+K';
+			button.tooltip = true;
 
 			// Bind button to the command.
 			button.bind( 'isEnabled' ).to( linkCommand, 'isEnabled' );
@@ -114,6 +115,7 @@ export default class Link extends Plugin {
 			button.isEnabled = false;
 			button.label = t( 'Unlink' );
 			button.icon = unlinkIcon;
+			button.tooltip = true;
 
 			// Bind button to the command.
 			button.bind( 'isEnabled' ).to( unlinkCommand, 'isEnabled' );