#151 Allow override of FCKToolbarPanelButton icon.

Version 2.x
closed-fixed
Editor (144)
5
2005-12-23
2005-09-08
No

I tried to create a FCKToolbarPanelButton for a plugin
but wasn't able to override the icon becasue
FCKToolbarPanelButton has it's icon "hardcoded" to
<skinpath>/<command_name>.
I suggest that FCKToolbarPanelButton reference it's
icon the same way the FCKToolbarButton does, namely by
setting an IconPath property in the constructor thereby
allowing a plugin to override it:
In FCKToolbarPanelButton.js, add the following line to
the constructor:
.
this.IconPath = FCKConfig.SkinPath + 'toolbar/' +
this.Command.Name.toLowerCase() + '.gif';
.
And replace the following line in CreateInstance:
.
sHtml += '<td class="TB_Icon" unselectable="on"><img
src="' + FCKConfig.SkinPath + 'toolbar/' +
this.Command.Name.toLowerCase() + '.gif" width="21"
height="21" unselectable="on"></td>' ;
.
.
with
.
.
sHtml += '<td class="TB_Icon" unselectable="on"><img
src="' + this.IconPath + '" width="21" height="21"
unselectable="on"></td>' ;

Discussion

  • Frederico Caldeira Knabben

    • assigned_to: nobody --> fredck
    • status: open --> open-fixed
     
  • Frederico Caldeira Knabben

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks