]> git.mxchange.org Git - friendica.git/blobdiff - js/fk.autocomplete.js
Merge pull request #512 from fermionic/auto-redir-for-local-hub-contacts
[friendica.git] / js / fk.autocomplete.js
index b1db92c41447df473747736f08b68c8d856cad31..b1bc40be28b12f4bf99c418a044396120ee80c61 100644 (file)
@@ -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();