tinymce tag complete - only replace tagged text
This commit is contained in:
parent
17679152d5
commit
987b8b4880
|
@ -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 New Issue
Block a user