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 {
|
else {
|
||||||
txt = tinyMCE.activeEditor.getContent();
|
txt = tinyMCE.activeEditor.getContent();
|
||||||
// alert(that.searchText + ':' + t);
|
// alert(that.searchText + ':' + t);
|
||||||
newtxt = txt.replace(that.searchText,t+' ');
|
newtxt = txt.replace('@' + that.searchText,'@' + t +' ');
|
||||||
tinyMCE.activeEditor.setContent(newtxt);
|
tinyMCE.activeEditor.setContent(newtxt);
|
||||||
tinyMCE.activeEditor.focus();
|
tinyMCE.activeEditor.focus();
|
||||||
that.close();
|
that.close();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user