X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ffont%2Fplugin.js;h=8dba4673361e5eff65ba90a9df68367f3a24ce43;hb=refs%2Ftags%2Fv3.4.2;hp=02e86df9e2fc3e5747e9b00dac063110f405db7e;hpb=c6e377a02b54abc07129d72b632763c727476a15;p=ckeditor.git diff --git a/_source/plugins/font/plugin.js b/_source/plugins/font/plugin.js index 02e86df..8dba467 100644 --- a/_source/plugins/font/plugin.js +++ b/_source/plugins/font/plugin.js @@ -29,6 +29,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license vars[ styleType ] = values[ i ] = parts[ 1 ] || name; styles[ name ] = new CKEDITOR.style( styleDefinition, vars ); + styles[ name ]._.definition.name = name; } else names.splice( i--, 1 ); @@ -38,14 +39,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { label : lang.label, title : lang.panelTitle, - voiceLabel : lang.voiceLabel, className : 'cke_' + ( styleType == 'size' ? 'fontSize' : 'font' ), - multiSelect : false, - panel : { css : editor.skin.editor.css.concat( config.contentsCss ), - voiceLabel : lang.panelVoiceLabel + multiSelect : false, + attributes : { 'aria-label' : lang.panelTitle } }, init : function() @@ -57,7 +56,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var name = names[ i ]; // Add the tag entry to the panel list. - this.add( name, '' + name + '', name ); + this.add( name, styles[ name ].buildPreview(), name ); } },