Ticket #6737: 6737_2.patch

File 6737_2.patch, 1.2 KB (added by Frederico Caldeira Knabben, 13 years ago)
  • _source/plugins/format/plugin.js

     
    4545                                                var label = lang[ 'tag_' + tag ];
    4646
    4747                                                // Add the tag entry to the panel list.
    48                                                 this.add( tag, '<' + tag + '>' + label + '</' + tag + '>', label );
     48                                                this.add( tag, styles[tag].buildPreview( label ), label );
    4949                                        }
    5050                                },
    5151
  • _source/plugins/styles/plugin.js

     
    288288                },
    289289
    290290                // Builds the preview HTML based on the styles definition.
    291                 buildPreview : function()
     291                buildPreview : function( label )
    292292                {
    293293                        var styleDefinition = this._.definition,
    294294                                html = [],
     
    315315                        if ( cssStyle )
    316316                                html.push( ' style="', cssStyle, '"' );
    317317
    318                         html.push( '>', styleDefinition.name, '</', elementName, '>' );
     318                        html.push( '>', ( label || styleDefinition.name ), '</', elementName, '>' );
    319319
    320320                        return html.join( '' );
    321321                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy