Closed varsadadj closed 11 years ago
I am sorry, I don't understand .... can you make some code examples please, where is clear what you do and what you expect to get ...?
http://jsfiddle.net/varsadadj/KLevv/ Replace with special character like that bold text when remove bold tag remove. replace to selected text with $elem.fieldSelection('|'+selectedText+'|');
why are you trying to replace the selection with jquery object? if you want to insert the text you have selected, then do this
$('#replace').on('click', function() {
$elem.fieldSelection('|*'+$elem.fieldSelection().text+'*|');
});
Thanks for this a solution, but here problem that text insert with $('#replace').on('click', function() { $elem.fieldSelection('|'+$elem.fieldSelection().text+'|'); }); text replace with |text| but how to remove this text second time click on replace button not to replace again. e.g wmd editor
you can't replace with this plugin text if its not selected ...
Here Problem is that first time replaced but second time replace is not checked all ready text replaced by special character like that stackoverflow.com website comment box.