I want use a plugin to add a button in the toolbarset,just like select some text,and let the selection between in '<a href="#" class="yeat"></a>',I can do this yet.
FCK have feature like this,when click in some text which bold,the B button will be change style,and click B button,the text which clicked will be remove bold.
so I want let my button has this feature,But how to?
here is some of my code:
FCK have feature like this,when click in some text which bold,the B button will be change style,and click B button,the text which clicked will be remove bold.
so I want let my button has this feature,But how to?
here is some of my code:
var Yeat={}; Yeat.Execute=function() { var aa=FCKSelection.GetSelection().createRange().text; aa='<a href="#" class="yeat">'+aa+'</a>'; FCK.InsertHtml(aa); }