calculating in iframe's coordinate

Instead of parent window's.
The fact is that caret.js will not calculate the iframe's offset.
Merge branch 'dev'