In my current toolbar I notice that the Source tool has a little icon plus the label "Source."
Is there a way of setting a text label like that for other tools as well? In particular, I would like to set a label for the "Preview" tool icon.
Thanks,
doug
Is there a way of setting a text label like that for other tools as well? In particular, I would like to set a label for the "Preview" tool icon.
Thanks,
doug
Re: Text label for toolbar tools?
It looks like somebody asked the same question in these forums 3 years ago but nobody answered. I hope I have better luck.
Thanks,
doug
Re: Text label for toolbar tools?
But if I start modifying that, won't I lose changes when I upgrade?
Is there a safe, upgradeable way to do this?
Thanks,
doug
Re: Text label for toolbar tools?
ofCKEditor.EditorWindow.parent.FCKToolbarItems.LoadedItems['Preview'].Style = 'FCK_TOOLBARITEM_ICONTEXT';
but that doesn't seem to have any effect.
Any hints at all would be most welcome.
Thanks!
doug
Re: Text label for toolbar tools?
Based on an obscure suggestion elsewhere, I added the following line to the end of an existing (though unrelated) plugin I was using to override the default behavior:
FCKToolbarItems.RegisterItem( 'Preview', new FCKToolbarButton( 'Preview', FCKLang.Preview, null, FCK_TOOLBARITEM_ICONTEXT, true, null, 5 ) ) ;
That worked.
So I'm going to reserve that section of code in that plugin for any other toolbar buttons whose text only, icon only or icon+text behavior I want to modify.
Whew.
doug
Re: Text label for toolbar tools?
Re: Text label for toolbar tools?