hi smacdonald2008,
thanks for responding back. You always reply to my query thats great. and i really appreciate that.
Coming to question can you be lil more specific.
like Which method should I use in this case. (I have already see that link, but i didn't found anything)
I am adding a button via misctoolsplugin.js.
so adding of the button is happening.
Now i need to put my whole code inside Execute method of Misctoolplugin.js. execute: function(id, value, options) .
please guide me further. I am new to CQ.
I need to get the selected text and then replace the space by and then save it back.
please help.