瀏覽代碼

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

Piotrek Koszuliński 9 年之前
父節點
當前提交
59f9846cc4
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 1
      packages/ckeditor5-basic-styles/src/bold.js
  2. 2 1
      packages/ckeditor5-basic-styles/src/italic.js

+ 2 - 1
packages/ckeditor5-basic-styles/src/bold.js

@@ -43,7 +43,8 @@ export default class Bold extends Plugin {
 			view.set( {
 				label: t( 'Bold' ),
 				icon: boldIcon,
-				keystroke
+				keystroke,
+				tooltip: true
 			} );
 
 			view.bind( 'isOn', 'isEnabled' ).to( command, 'value', 'isEnabled' );

+ 2 - 1
packages/ckeditor5-basic-styles/src/italic.js

@@ -43,7 +43,8 @@ export default class Italic extends Plugin {
 			view.set( {
 				label: t( 'Italic' ),
 				icon: italicIcon,
-				keystroke
+				keystroke,
+				tooltip: true
 			} );
 
 			view.bind( 'isOn', 'isEnabled' ).to( command, 'value', 'isEnabled' );