]> git.mxchange.org Git - friendica.git/commitdiff
tinymce tag complete - only replace tagged text
authorfriendica <info@friendica.com>
Wed, 10 Oct 2012 00:03:00 +0000 (17:03 -0700)
committerfriendica <info@friendica.com>
Wed, 10 Oct 2012 00:03:00 +0000 (17:03 -0700)
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();