X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ffont%2Fplugin.js;h=8dba4673361e5eff65ba90a9df68367f3a24ce43;hb=refs%2Ftags%2Fv3.2.1;hp=70f3d9d698f7fc60a5db0515e2d27e9418899eda;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/font/plugin.js b/_source/plugins/font/plugin.js index 70f3d9d..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 ); @@ -55,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 ); } },