tinymce tag complete - only replace tagged text
This commit is contained in:
parent
17679152d5
commit
987b8b4880
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue