Hello!
I want to add a button to the toolbar of the fckeditor (2.5.1) and I have seen only examples that use an image (as the "visible" part of the button).
I would like to use instead a (object that would contain) text (that would have a onClick event associated).
<span id="mybutton" class="emulButton" onclick="Action();" onmouseover="mouseOver();" onmouseout="mouseOut();" >
I can't find how to associate a button with a label.I tried using the fcktoolbarbutton object, and now I don't know how to replace the image by the text.
(I did it with another editor with span and changing the content innerHTML like this:
Could you help me?
Thank you!
Here's my code:
var oCorrectItem = new FCKToolbarButton ('My_Button', "tooltip"); var SEP = "/"; oCorrectItem.IconPath = FCKPlugins.Items['myplugin'].Path + 'img' + SEP + 'ico_plug1.gif';