JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.1
[ckeditor.git] / _source / plugins / font / plugin.js
index 70f3d9d..8dba467 100644 (file)
@@ -29,6 +29,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                vars[ styleType ] = values[ i ] = parts[ 1 ] || name;\r
 \r
                                styles[ name ] = new CKEDITOR.style( styleDefinition, vars );\r
+                               styles[ name ]._.definition.name = name;\r
                        }\r
                        else\r
                                names.splice( i--, 1 );\r
@@ -55,7 +56,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                var name = names[ i ];\r
 \r
                                                // Add the tag entry to the panel list.\r
-                                               this.add( name, '<span style="font-' + styleType + ':' + values[ i ] + '">' + name + '</span>', name );\r
+                                               this.add( name, styles[ name ].buildPreview(), name );\r
                                        }\r
                                },\r
 \r