の中にいくつかのformattedテキストがtextareaあり、カーソルがどこかにあります。カーソルが特定のタグの間にあるかどうかを確認する必要があります。
例:
foo|バー.
isBetween(['b', 'strong']); // should return true in above case
内部のfunction返品がpositionあります(いくつか問題がありますが、今のところ満足しています)。だから、私が必要なのはそれだけです。cursortextareaIEisBetween() function
助けてくれてありがとう!
更新:
<p>qwer<b>ty|ui</b>op</p>
isBetween(['p']); // should also return true, because the cursor in not only between 'b', it is between 'p' too