Updated toolbar template
authorAlexander Ebert <ebert@woltlab.com>
Tue, 1 Apr 2014 13:53:27 +0000 (15:53 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 1 Apr 2014 13:53:27 +0000 (15:53 +0200)
com.woltlab.wcf/templates/wysiwygToolbar.tpl

index 446a135b22c897054f28365a6fe69da607586cbb..f86978fc728b555eab081e488613cbd6fdb6a4be 100644 (file)
@@ -43,18 +43,19 @@ if ($buttons.length && $buttons[$buttons.length -1] != 'separator') {
        $buttons.push('separator');
 }
 
-{* TODO
-var $font = [ ];
 {if $__wcf->getBBCodeHandler()->isAvailableBBCode('font')}
-       $font.push('Font');
+       $buttons.push('fontfamily');
 {/if}
 {if $__wcf->getBBCodeHandler()->isAvailableBBCode('size')}
-       $font.push('FontSize');
+       $buttons.push('fontsize');
 {/if}
 {if $__wcf->getBBCodeHandler()->isAvailableBBCode('color')}
-       $font.push('TextColor');
+       $buttons.push('fontcolor');
 {/if}
-*}
+
+if ($buttons.length && $buttons[$buttons.length -1] != 'separator') {
+       $buttons.push('separator');
+}
 
 {if $__wcf->getBBCodeHandler()->isAvailableBBCode('url')}
        $buttons.push('link');