Browse Source

Internal: Symbol tiles are now using title attirbute to show a tooltip.

Marek Lewandowski 6 years ago
parent
commit
3fdf845d92
1 changed files with 8 additions and 0 deletions
  1. 8 0
      packages/ckeditor5-special-characters/src/ui/charactergridview.js

+ 8 - 0
packages/ckeditor5-special-characters/src/ui/charactergridview.js

@@ -71,6 +71,14 @@ export default class CharacterGridView extends View {
 			class: 'ck-character-grid__tile'
 		} );
 
+		// Labels are vital for the users to understand what character they're looking at.
+		// For now we're using native title attribute for that, see #5817.
+		tile.extendTemplate( {
+			attributes: {
+				title: name
+			}
+		} );
+
 		tile.on( 'execute', () => {
 			this.fire( 'execute', { name } );
 		} );