ソースを参照

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

Piotrek Koszuliński 9 年 前
コミット
59f9846cc4

+ 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' );