Author: Pustomytnyk
Description:
After calling encapsulateSelection (pre = "<tag>", post = "</tag>") on "sometext" we have "<tag>sometext</tag><caret here>" instead of "<tag>sometext<caret here></tag>"
Is this a bug?
At this moment I need to run smth. like this
<source lang="javascript">if (endTag && (sel !== ''))//sel - selection before encapsulateSelection call
{
var pos = $(textarea).textSelection('getCaretPosition');
$(textarea).textSelection('setSelection', {start: pos - endTag.length});
}</source>
Version: unspecified
Severity: normal