Browse Source

tinymce tag complete - only replace tagged text

pull/511/merge
friendica 9 years ago
parent
commit
987b8b4880
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      js/fk.autocomplete.js

+ 1
- 1
js/fk.autocomplete.js View 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();


Loading…
Cancel
Save