X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ffont%2Fplugin.js;h=74d3c9d7d6699319b62cbd74c439defd2fcddb01;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=70f3d9d698f7fc60a5db0515e2d27e9418899eda;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/font/plugin.js b/_source/plugins/font/plugin.js index 70f3d9d..74d3c9d 100644 --- a/_source/plugins/font/plugin.js +++ b/_source/plugins/font/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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 ); } },