Ticket #6737: 6737_2.patch
File 6737_2.patch, 1.2 KB (added by , 13 years ago) |
---|
-
_source/plugins/format/plugin.js
45 45 var label = lang[ 'tag_' + tag ]; 46 46 47 47 // 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 ); 49 49 } 50 50 }, 51 51 -
_source/plugins/styles/plugin.js
288 288 }, 289 289 290 290 // Builds the preview HTML based on the styles definition. 291 buildPreview : function( )291 buildPreview : function( label ) 292 292 { 293 293 var styleDefinition = this._.definition, 294 294 html = [], … … 315 315 if ( cssStyle ) 316 316 html.push( ' style="', cssStyle, '"' ); 317 317 318 html.push( '>', styleDefinition.name, '</', elementName, '>' );318 html.push( '>', ( label || styleDefinition.name ), '</', elementName, '>' ); 319 319 320 320 return html.join( '' ); 321 321 }