diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js index b1db92c414..b1bc40be28 100644 --- a/js/fk.autocomplete.js +++ b/js/fk.autocomplete.js @@ -104,7 +104,7 @@ ACPopup.prototype._search = function(){ else { txt = tinyMCE.activeEditor.getContent(); // alert(that.searchText + ':' + t); - newtxt = txt.replace(that.searchText,t+' '); + newtxt = txt.replace('@' + that.searchText,'@' + t +' '); tinyMCE.activeEditor.setContent(newtxt); tinyMCE.activeEditor.focus(); that.close();