From 987b8b48809f5f9835f3b5de5b4d2d06cab21c4a Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 9 Oct 2012 17:03:00 -0700 Subject: [PATCH] tinymce tag complete - only replace tagged text --- js/fk.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();