sforkowany z mirror/friendica
Merge pull request #1238 from annando/1412-prevent-span-problem
1412 prevent span problem2022.09-rc
commit
3bf7c9c7a1
|
@ -62,7 +62,7 @@ ACL.prototype.add_mention = function(id) {
|
||||||
that.element.val( searchText + that.element.val() );
|
that.element.val( searchText + that.element.val() );
|
||||||
} else {
|
} else {
|
||||||
if ( tinyMCE.activeEditor.getContent({format : 'raw'}).search(searchText) >= 0 ) return;
|
if ( tinyMCE.activeEditor.getContent({format : 'raw'}).search(searchText) >= 0 ) return;
|
||||||
tinyMCE.activeEditor.dom.add(tinyMCE.activeEditor.getBody(), 'span', {}, searchText);
|
tinyMCE.activeEditor.dom.add(tinyMCE.activeEditor.getBody(), 'dummy', {}, searchText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue