- assigned_to: nobody --> fredck
- status: open --> open-fixed
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>' ;
Log in to post a comment.