の中にいくつかのformatted
テキストがtextarea
あり、カーソルがどこかにあります。カーソルが特定のタグの間にあるかどうかを確認する必要があります。
例:
foo|
バー.
isBetween(['b', 'strong']); // should return true in above case
内部のfunction
返品がposition
あります(いくつか問題がありますが、今のところ満足しています)。だから、私が必要なのはそれだけです。cursor
textarea
IE
isBetween()
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